Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

youssefboudaya's avatar

How to correctly deploy laravel project ?

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 'www.mydomain.com/myproject/public/' 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
</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]

0 likes
4 replies
Robstar's avatar

"i get this error This page isnt working HTTP ERROR 500"

With the greatest respect you're very unlikely to get any resolution here with should a vague error and poor question.

I'd recommend you read https://stackoverflow.com/help/how-to-ask and post again.

1 like
Robstar's avatar

Well a 500 error is extremely general, at least give us something to go off.

For example, post some relevant lines form your chosen log stack.

If you ask better questions, you always get better answers.

Please or to participate in this conversation.