2016-11-19 88 views
1

我有一個laravel項目,我想將其上傳到hostgator共享託管服務器。我在根目錄中複製項目並將公共內容放置在public_html文件夾中。將laravel項目部署到共享服務器時出錯

我已經更新了confiuration -

enter code here 

require DIR . '/../../folder-name/bootstrap/autoload.php'; 
$app =  require_once DIR . '/../../folder-name/bootstrap/app.php'; 

,但我發現500內部服務器錯誤。

需要專家的建議。

回答

0

開放的public_html/index.php文件,並設置:

require DIR.'/../folder-name/bootstrap/autoload.php'; 

$app = require_once DIR.'/../folder-name/bootstrap/start.php'; 

,並把這個放在上面:

ini_set('eaccelerator.enable', 0); 

,並設置權限storagefolder-name DIR

相關問題