1

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.

Arya
  • 395
  • 2
  • 6
  • 14
  • 1
    Please check these links:- http://stackoverflow.com/questions/20678360/laravel-blank-white-screen . https://laracasts.com/discuss/channels/general-discussion/laravel-50-homestead-blank-page. https://laracasts.com/discuss/channels/general-discussion/laravel-5-gets-a-blank-page. – Alive to die - Anant Apr 14 '15 at 05:57
  • `ini_set('display_errors',1); error_reporting(E_ALL);`. – Rasclatt Apr 14 '15 at 05:57
  • enable debug in config file – madalinivascu Apr 14 '15 at 06:32
  • Thanks for replying but there is no errors in this project its a fresh installation. @Rasclatt – Arya Apr 14 '15 at 06:42
  • 1
    Well that is the most common for a blank page. Did you try as @anantkumarsingh suggested? Those looked pretty indepth about the same issue – Rasclatt Apr 14 '15 at 06:43
  • 1
    yeah, i found the problem. its a permission issue. after ran this command its not working sudo chmod -R o+w storage/ at all. but after ran sudo chmod -R 777 storage, its working perfectly. :-) – Arya Apr 14 '15 at 06:51

3 Answers3

6

Run below command on your project directory.

sudo chmod -R 777 storage/

after this its might be working fine.

Softec
  • 125
  • 8
Arya
  • 395
  • 2
  • 6
  • 14
  • Can you explain what this does? – bart Aug 30 '15 at 19:18
  • Basically it gives all the permission like read and on your system. where your application store the caching files or folder store them. That's why its need at least read and write permission. – Arya Sep 04 '15 at 05:24
0

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!

Kent Aguilar
  • 5,048
  • 1
  • 33
  • 20
0

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
Abhijeet Navgire
  • 683
  • 7
  • 20