Amazon Lightsail:Bitnami LAMP服务器网站托管:sudo服务apache2重启
我试着按照这里的指南来做: 在web上托管一些PHP文件。直到最后一步的第二步:标题中的命令,一切都正常。我得到的控制台消息如下:Amazon Lightsail:Bitnami LAMP服务器网站托管:sudo服务apache2重启,apache,amazon-web-services,server,web-hosting,amazon-lightsail,Apache,Amazon Web Services,Server,Web Hosting,Amazon Lightsail,我试着按照这里的指南来做: 在web上托管一些PHP文件。直到最后一步的第二步:标题中的命令,一切都正常。我得到的控制台消息如下: bitnami@ip-*not important*:~$ sudo service apache2 restart * Restarting web server apache2 AH00112: Warning: DocumentRoot [/var/www/html] does not exist AH00558: apache2: Coul
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
下找到。我建议你看看他们的网站
共同点:
- 配置存储在
/opt/bitnami/apps/myapp/conf/
- 基本文件夹如
是特定于应用程序的,如/var/www
,其中是应用程序的名称/opt/bitnami/apps//htdocs/
- 可以使用sudo/opt/bitnami/ctlscript.sh restart Apache重新启动Apache
- 访问和错误日志可分别在
和/opt/bitnami/apache2/logs/Access\u log
找到/opt/bitnami/apache2/logs/Error\u log
希望这能帮你找到正确的方向。这里是主条目/opt/bitnami/apache2/conf/bitnami/bitnami.conf