I want to upload a Laravel 5.2 project on live server.when I upload it and try to run then give me 500: Internal-Server Error.
How Can I Fix This?
I want to upload a Laravel 5.2 project on live server.when I upload it and try to run then give me 500: Internal-Server Error.
How Can I Fix This?
In the most cases, this error happens because of folders and files permissions (in the case of laravel, may be the .env missing)
To fix this, check if you have the .env file in your folder
If not:
Generate your .env:
cp .env.example .env
Generate your key:
php artisan key:generate
After that, give the correct permissions to your laravel folder.
Enter in the laravel project
cd my_project_folder
Add the 644 permission to files and 755 to folders:
find ./ -type f -exec chmod 644 {} \;
find ./ -type d -exec chmod 755 {} \;
Clear your cache
php artisan cache:clear
php artisan config:clear
php artisan view:clear
If another error appears, try to update your composer
composer update
First Check if the domain is redirecting to your public folder.
If yes , check the .env file and the database is conected . Clear all the cache manually :
Bootstrap : services.php, settings.php Delete
Storage/Framework/Cache Delete all files
Storage/Framework/session Delete all files
Storage/Framework/views Delete all files
or if you have ssh access :
php artisan cache:clear php artisan config:clear php artisan view:clear
If still not working . check if the permmisons for storage folder are correct. good luck :)