apache2のインストールを試みたのですがうまくいきません。
環境
ubuntu16.04LTS
terminal
1sudo aptitude install apache2 2
上記のコマンドでインストールしたのですが、
apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since 火 2018-06-12 20:00:50 JST; 9ms ago
Docs: man:systemd-sysv-generator(8)
Process: 5248 ExecStart=/etc/init.d/apache2 start (code=exited, status=2)
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M systemd[1]: Starting LSB: Apache2 web server...
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M apache2[5248]: /etc/init.d/apache2: 46: .: Can't open /etc/apa...ars
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M apache2[5248]: /etc/init.d/apache2: 57: .: Can't open /etc/apa...ars
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M apache2[5248]: ERROR: APACHE_PID_FILE needs to be defined in /...ars
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M systemd[1]: apache2.service: Control process exited, code=exit...s=2
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M systemd[1]: Failed to start LSB: Apache2 web server.
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M systemd[1]: apache2.service: Unit entered failed state.
6月 12 20:00:50 rarigo-To-be-filled-by-O-E-M systemd[1]: apache2.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
こんな感じのメッセージが表示されました。
原因がわかりません。どなたかご教授おねがいします
apache2.confが見つかりませんでした。
起動コマンドを実行しても
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
このように返答されます。
apache2の中には
conf-available conf-enabled mods-available mods-enabled sites-available sites-enabled
このフォルダがありましたがなにも入っていませんでした。

回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
また依頼した内容が修正された場合は、修正依頼を取り消すようにしましょう。
2018/06/12 13:44
2018/06/12 14:24
2018/06/12 14:29
2018/06/12 14:43
2018/06/12 14:47
2018/06/13 13:43