ApacheがUbuntuを起動しない

ApacheがUbuntuを起動しない

走っているとservice apache2 start 反応が返ってくる

 * Starting web server apache2                                                  /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
                                                                         [fail]

`netstat -tulpn| grep :80 を実行すると

返事が来ました。

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::80                   :::*                    LISTEN     

これをどうすれば解決できますか?

答え1

このコマンドは管理者権限で実行する必要があります。 を呼び出しますsudo service apache2 start

それでも問題が解決しない場合は、suログインに成功した後にコマンドを実行してください。今回は機能するはずです。

関連情報