Reputation: 453
I've installed laravel 4 and when I go to the following URL:
http://localhost/laravel/public/
I got this error:
Error in exception handler.
I've tried so far like said in this topic
Error in exception handler. - Laravel
but it couldn't help me. Any ideas?
Upvotes: 6
Views: 6112
Reputation:
This is a permission error,
Go to your Project folder path were it is located.
eg:- cd /var/www/html/project-folder/
Then type,
chmod -R 777 project-folder
press Enter, That's it..
Upvotes: 0
Reputation: 3403
@ArunKumar is right. But I generally use the artisan with sudo. This will give artisan all the permissions it needs and won't make any security problems as well.
so instead starting artisan serve with:
$ php artisan serve
try using:
$ sudo php artisan serve
thus you wont have to make any permission changes.
Upvotes: 1
Reputation: 85
Were you using the FTP (FileZilla) ssh root@ipaddress and trying to connect the web server and does not see the var/www/html on list? you might thought it was just chmod -R 777(laravel's group folder)/app/storage, so I decided try by this sudo chmod -R 777 /var/www/html/(laravel's group folder)/app/storage. check the web server it went through the permission and it works.
Upvotes: 1
Reputation: 1198
Laravel needs to write some files to app/storage folder so give app/storage write permissions chmod 777 some thing as suggested as below url or use chown www-data:www-data -R app/storage
Upvotes: 7