apache - 服务器错误 500 PHP

标签 apache centos lamp centos7

再会

我试图在我的 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/

相关文章:

java - apache poi如何刷新整个工作簿

php - 使php文件对外界隐藏

php - Centos 6.6 CURL 在连接到某些 SSL 站点时返回错误

updates - 如何更新 Bitnami LAMP 堆栈?

apache - GWT 与 Apache Wicket

compilation - 如何从源代码构建 openssl-devel 包?

php - 当 PHP 脚本通过/user/bin/php 运行时,Error_log 不起作用

linux - Ubuntu Server VMware www 文件夹不工作

php - 如何阻止来自中国对我的应用程序的请求?

apache - Docker - 如何为 AEM 打开调试端口