1
昨天,我上傳了我的yii項目網站servobox webhosting。yii - 上傳到網站主機時出現內部服務器錯誤(500)
我的index.php
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../hshome/paperchoicecomph/p/yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
Yii::createWebApplication($config)->run();
當本地主機它工作正常,但是當我上傳它,它給了我這個錯誤「500 - 內部服務器錯誤沒有與您正在尋找的資源問題因爲它不能被顯示。「
有人可以幫我解決這個錯誤。我搜索論壇並嘗試一些解決方案,但沒有任何工作。
請幫助:(
你可以檢查錯誤日誌...! –
tnx您的回覆。 yii(application.log)的錯誤日誌未顯示錯誤。我不知道爲什麼。最後的錯誤日誌是6/28,但我昨天上傳了我的項目。 –
我想他想讓你檢查Apache的錯誤日誌 –