[英]Can't install lumen in shared hosting
我正在嘗試在共享主機中安裝最新的流明。 我在public_html中創建了一個名為lumen的文件夾,並將所有文件放在該文件夾中。 當我瀏覽URL時,例如: https : //example.com/lumen,它給了我500錯誤代碼。
相同的代碼在localhost中運行良好。 當我將其上傳到共享主機中時,它將停止工作。 我在lumen文件夾的根目錄中添加了一個新的.htaccess
,包括以下代碼:
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
還嘗試編輯公用文件夾的.htaccess
文件以及index.php
,但沒有任何效果。
我找不到有關此問題的任何適當結果。 我所能找到的只是關於laravel。 誰能幫我這個? 公用文件夾的錯誤日志包括:
[25-Oct-2018 06:54:54 UTC] PHP Parse error: syntax error, unexpected '=' in /home2/lilyserv/public_html/lumen/vendor/illuminate/config/Repository.php on line 6
8
您確定它的流明5.4嗎? 因為這里沒有任何內容:
https://github.com/laravel/framework/blob/5.4/src/Illuminate/Config/Repository.php#L68
但是這里有一些東西: https : //github.com/laravel/framework/blob/5.7/src/Illuminate/Config/Repository.php#L68
這是5.7版本。
你可以做什么:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.