我正在尝试按照此处的指南: http ://www.servermom.org/how-to-add-new-site-into-your-apache-based-ubuntu-server/ 在网络上托管一些 PHP 文件。一切正常,直到倒数第二步:标题中的命令。我得到的控制台消息如下:
bitnami@ip-*not important*:~$ sudo service apache2 restart
* Restarting web server apache2
AH00112: Warning: DocumentRoot [/var/www/html] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified do
main name, using 127.0.0.1. Set the 'ServerName' directive globally to suppres
s this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]
:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.
0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
* The apache2 instance did not start within 20 seconds. Please read the log f
iles to discover problems
我用 nano 打开 /var/log/apache2 中的 access.log 和 error.log 文件,它们都显示为空。关于为什么“行动'开始'失败”的任何想法?
提前感谢您的帮助