2016-12-01 119 views
0

我有以下.htaccess配置CakePHP的 - GoDaddy的共享主機 - HTTP錯誤500

####### In the root directory 
<IfModule mod_rewrite.c> 
    RewriteEngine on 
    RewriteBase/
    RewriteRule ^$ app/webroot/ [L] 
    RewriteRule (.*) app/webroot/$1 [L] 

</IfModule> 


####### In the app directory 
<IfModule mod_rewrite.c> 
    RewriteEngine on 
    RewriteBase/
    RewriteRule ^$ webroot/ [L] 
    RewriteRule (.*) webroot/$1 [L] 
</IfModule> 


###### In the webroot 
<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase/
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] 
</IfModule> 

我從GoDaddy收到以下錯誤

HTTP錯誤500

錯誤日誌

[Thu Dec 01 05:33:59.885650 2016] [fcgid:warn] [pid 149973:tid 140591985846016] [client 85.17.24.76:43828] mod_fcgid: stderr: PHP Fatal error: Class 'ErrorHandler' not found in /home/mink7/public_html/sites/prayag.mink7.com/lib/Cake/Core/App.php on line 918 
[Thu Dec 01 05:33:59.885627 2016] [fcgid:warn] [pid 149973:tid 140591985846016] [client 85.17.24.76:43828] mod_fcgid: stderr: PHP Warning: include(): Failed opening '/var/www/clients/client1/web2/web/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='/home/mink7/public_html/sites/prayag.mink7.com/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/mink7/public_html/sites/prayag.mink7.com/lib/Cake/Core/App.php on line 547 
[Thu Dec 01 05:33:59.878469 2016] [fcgid:warn] [pid 149973:tid 140591985846016] [client 85.17.24.76:43828] mod_fcgid: stderr: PHP Warning: include(/var/www/clients/client1/web2/web/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in /home/mink7/public_html/sites/prayag.mink7.com/lib/Cake/Core/App.php on line 547 
+0

這意味着您必須檢查錯誤日誌以查看錯誤。在共享主機中,您通常在控制面板中有一個工具。 –

+0

@ÁlvaroGonzález錯誤日誌中沒有任何內容 –

+0

GoDaddy提供哪些錯誤日誌? Apache,PHP或兩者兼而有之? –

回答

1

您的網站在託管:

/home/mink7/public_html/sites/prayag.mink7.com 

然而,CakePHP會試圖在加載的東西:

/var/www/clients/client1/web2/web 

您必須在您的配置硬編碼錯誤路徑的某處。

+0

不,我沒有做任何事情:( –

+1

該死!!它是從先前的緩存文件託管:( –