Laravel 在共享託管上的專案部署拋出錯誤 500

Laravel 在共享託管上的專案部署拋出錯誤 500

我想在共享主機(ovh)上部署 laravel 的項目

我有 ftp 存取權限,共享主機的資料夾架構如下:

清理託管資料夾

我已將 laravel 的檔案上傳到根資料夾,並將 public 資料夾的內容上傳到www

上傳的項目

這也是我的www/.htaccess文件:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

這是我的.env文件:

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:kUQEHrtug5E+ZOI99vKg+BKkfU6rdzH9pUXhmbDYzsg=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack



DB_CONNECTION=mysql
DB_HOST=XXXXXXX.XXXXX.XXXX
DB_PORT=3306
DB_DATABASE=XXXXXXX
DB_USERNAME=XXXXXX
DB_PASSWORD=XXXXXXX

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=ssl0.ovh.net
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=XXXXXXXX
MAIL_ENCRYPTION=ssl

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

所有這些都上傳後,我收到以下錯誤:

This page isn't working. XXXXX is currently unable to handle this request. HTTP_ERROR 500

我已將資料夾的權限設定storage/logs為775

有人知道發生了什麼事嗎?

相關內容