服务器错误500腓
问题描述:
好日子服务器错误500腓
我试着安装用PHP的GamePanel称为Swiftpanel我的VPS Centos7 64
我在我的VPS和html文件安装LAMP正常工作。 但我的GamePanel does not工作
和的GamePanel位于:
,你可以看到当我试图达到我gpanel它给我的SERVER ERROR 500
我看着我的Apache错误日志,这就是我得到:
[Fri Mar 04 15:53:53.533162 2016] [autoindex:error] [pid 18753] [client 46.99.59.98:51034] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
这里是我的httpd.conf和php.conf:
我需要一些帮助修复此,在编码我是个初学者。
对于
本杰明Selmani
答
在httpd.conf中,尝试改变路线:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
到
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
,并重新启动Apache。
答
OK,编辑httpd.conf文件,并更改以下行:
Options Indexes FollowSymLinks
到:
Options +Indexes +FollowSymLinks
然后重新启动Apache服务器。如果这不起作用,很可能我们正在编辑错误的httpd.conf文件。你会惊奇地发现你的计算机上有多少包括子目录中的所有conf文件(查看你的httpd.conf文件的最后一行)。某处有可能是一条线,看起来像这样:
Options -Indexes
这是问题的明确原因。但请先尝试我先前的建议。
不过500这个服务器错误在错误日志: [周五19年3月4日:29:20.612198 2016年] [自动索引:错误] [PID 21789] [客户46.99.10.113:53845] AH01276:不能侍奉目录/ var/www/html /:找不到匹配的DirectoryIndex(index.html,index.php,index.php),以及由Options指令禁止的服务器生成的目录索引 –