2 months ago

How to correctly deploy laravel project ?

Posted 2 months ago by youssefboudaya

I migrated my app from laravel 4.2 to 5.7. I created a folder under my domain copied the project files and added the database. When i try to access the home url '' i get this error This page isnt working HTTP ERROR 500. I did this many times and never faced this problem before. This is what i have already tried:

-I change user priviliges with chmod -php artisan cache:clear -php artisan config:clear -composer dump-autoload this is my .htaccess file :

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

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]

Please sign in or create an account to participate in this conversation.