Error 500 after installing Laravel 5.3
I have a Laravel project (version 5.3) that works well on my localhost (wampserver).
Now I want to run this project on a subdomain of my website.I have ssh root access and a vps user access (not admin - with Directadmin - PHP version 5.4).
I uploaded project files to my server but when I try to see the project result , it gives me a 500 error.
I have tried to change 'storage' folder permissions , so I read this answer , but when I run "chchon" ssh command , I get errors like this :
can't apply partial context to unlabeled file ...
also , I have tested Laravel with version 4.2 and it worked well.
Does any boy have idea ?? Thanks
If you don't have SELinux enabled, you can set permissions simply with
chmodor set the owner of the storage directory with
chownto the web server's user. (which is probably www-data)
Try to run
sudo chown -R www-data storagein the project directory
Try all this
// first delete the vendor folder inside your project root, then run composer install // laravel generates log file there sudo chmod -R 777 storage/logs // laravel cache the files here sudo chmod -R 777 bootstrap/cache // vendor folder, where laravel saves their dependencies sudo chmod -R 777 storage/ vendor/ // generate a application key php artisan key:generate
This might help :)