我正在尝试按照此处的指南进行操作:
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文件,并且两者都显示为空。关于为什么“操作'开始'失败”的任何想法?
预先感谢您的任何帮助
最佳答案
Bitnami将系统控制在非标准位置。它们可以在/opt/bitnami
下找到。我建议检查一下他们的Documenation on the configuration of Apache。
共同点:
/opt/bitnami/apps/myapp/conf/
/var/www
)是特定于应用程序的,例如/opt/bitnami/apps/<app_name>/htdocs/
,这是应用程序的名称。 sudo /opt/bitnami/ctlscript.sh restart apache
/opt/bitnami/apache2/logs/access_log
和/opt/bitnami/apache2/logs/error_log
上希望能帮助您朝正确的方向发展。