Arya
Arya

Reputation: 395

blank page comes in laravel 5

i have setup a newly laravel 5 in my UBUNTU system which is 14.04.

when i ran my project which is http://localhost/blog/public/ it give me a blank page. i have again and again setup laravel in my system but it not working.

i know "php artisan serve". it will run my project on http://localhost:8000/ but i don't want this. i want to run simply by entering a url. please help me and thanks a lot for your solutions.

Upvotes: 1

Views: 6718

Answers (3)

Arya
Arya

Reputation: 395

Run below command on your project directory.

sudo chmod -R 777 storage/

after this its might be working fine.

Upvotes: 6

Abhijeet Navgire
Abhijeet Navgire

Reputation: 753

Give write permission to bootstrap/cache & storage folder by using below command

sudo chmod -R 777 bootstrap/cache

sudo chmod -R 777 storage

also make sure new application key generate. if not then use below command

php artisan key:generate

Upvotes: 0

Kent Aguilar
Kent Aguilar

Reputation: 5338

You could try any of these pointers.

  • Give write permission to bootstrap/cache and storage folders

sudo chmod -R 777 bootstrap/cache storage

  • Generate new application key via the artisan command

php artisan key:generate

  • If the blank screen still persists, and you’re running on CENTOS, then it’s potentially be a SELinux issue. If so, run this command.

setenforce permissive


Hope this helps!

Upvotes: 0

Related Questions