再会
我试图在我的 VPS Centos7 64bit 上安装一个名为 Swiftpanel 的 PHP GamePanel
我在我的 vps 上安装了 LAMP,并且 html 文件运行良好。
但是我的游戏面板不起作用
游戏面板位于:
http://51.255.199.40/gpanel/
正如你所看到的,当我尝试到达我的 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:
http://pastebin.com/HJfH3gWQ
我需要一些帮助来解决这个问题,我是编码的初学者。
尊重地
本杰明·塞尔马尼
最佳答案
在 httpd.conf 中,尝试更改行:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
至
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
并重新启动 Apache。
关于apache - 服务器错误 500 PHP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35799576/