Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel - 500 Internal Server Error

I'm running my laravel site in my localhost, works fine. But when I try run my site in hosting server, I got 500 internal server error? Is it because of my .htaccess file or I remove public url ?

My .htaccess file

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

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
like image 517
Nurdin Avatar asked Nov 02 '22 01:11

Nurdin


1 Answers

Try this on the terminal :

sudo chmod -R 755 <your_laravel_project> 

and

chmod -R o+w <your_laravel_project>/storage
like image 187
Arunabh Das Avatar answered Nov 09 '22 12:11

Arunabh Das