2016-03-04 184 views
0

好日子服務器錯誤500腓

我試着安裝用PHP的GamePanel稱爲Swiftpanel我的VPS Centos7 64

我在我的VPS和html文件安裝LAMP正常工作。 但我的GamePanel does not工作

和的GamePanel位於:

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

我需要一些幫助修復此,在編碼我是個初學者。

對於

本傑明Selmani

回答

0

在httpd.conf中,嘗試改變路線:

<IfModule dir_module> 
DirectoryIndex index.html 
</IfModule> 

<IfModule dir_module> 
DirectoryIndex index.html index.php 
</IfModule> 

,並重新啓動Apache。

+0

不過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指令禁止的服務器生成的目錄索引 –

0

OK,編輯httpd.conf文件,並更改以下行:

Options Indexes FollowSymLinks

到:

Options +Indexes +FollowSymLinks

然後重新啓動Apache服務器。如果這不起作用,很可能我們正在編輯錯誤的httpd.conf文件。你會驚奇地發現你的計算機上有多少包括子目錄中的所有conf文件(查看你的httpd.conf文件的最後一行)。某處有可能是一條線,看起來像這樣:

Options -Indexes

這是問題的明確原因。但請先嚐試我先前的建議。