我正在尝试按照这里的指南: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文件,这两个文件都是空的。对“行动‘开始’失败‘有什么想法吗?”
提前感谢您的帮助
发布于 2017-09-10 18:07:01
Bitnami将系统置于其控制之下,进入一个非标准的位置。它们可以在/opt/bitnami下找到。我建议你去看看他们的关于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找到。希望这能让你朝着正确的方向前进。
https://stackoverflow.com/questions/46136968
复制相似问题