Sometimes, after uploading your Laravel project to a VPS server you may see 500 error. You may be noticed 500 error frequently. Sometimes it happens for the permission of the storage folder of your Laravel app. Another reason for this problem is cache. You need to clear the cache that was created on your local or development server.
You can get rid of this problem running the following commands :
Give correct permission to app’s default/public_html folder.
1
|
sudo chmod 755 –R default
|
Give proper permission to storage folder.
1
|
chmod –R o+w default/storage
|
Clear all cache that was created in development server.
1
|
php artisan cache:clear
|