6

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?

Community
  • 1
  • 1
lalexa
  • 443
  • 3
  • 8
  • 16

4 Answers4

7

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

Laravel error

Arun Kumar
  • 1,190
  • 8
  • 15
1

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.

Ironheartbj18
  • 87
  • 1
  • 4
  • 12
1

@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.

Skeletor
  • 3,201
  • 4
  • 30
  • 51
0

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..