作者:吴国伟60942 | 来源:互联网 | 2023-01-19 11:04
我正在尝试按照此处的指南进行操作: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文件,并且两者都显示为空。关于“操作'开始'失败”的原因有何想法?
预先感谢您的任何帮助
1> Jamie Starke..:
Bitnami将系统控制在非标准位置。它们可以在下找到/opt/bitnami
。我建议检查他们关于Apache配置的文档。
共同点:
配置存储在 /opt/bitnami/apps/myapp/conf/
基本文件夹(如)/var/www
是特定于应用程序的,如/opt/bitnami/apps//htdocs/
,其中您的应用程序的名称。
重新启动Apache可以通过 sudo /opt/bitnami/ctlscript.sh restart apache
访问日志和错误日志分别位于/opt/bitnami/apache2/logs/access_log
和/opt/bitnami/apache2/logs/error_log
Hope that helps get you in the right direction.