Laravel 4.1 - blank page

April 7, 2014 5.9k views
I made a new laravel app today (tested it locally and is working), then I pushed it to bitbucket and cloned it on my droplet. After that I did a sudo chmod 777 -R app/storage, but I'm still getting a blank page on the root. My droplet is running Cent OS 6 and other (older) laravel apps are working fine. Any ideas?
3 Answers
How are you serving your apps? Are you seeing anything in the web server's log files (e.g. /var/log/nginx/error.log or /var/log/apache2/error.log)?

After installing laravel in my server .the home page displaying as blank page without any error message.How can i solve it?

  • If you are running APP in Apache2, try running:

    $ sudo chmod -R gu+w app/storage

    For Laravel5 refer this

In my case there STILL IS a problem with paths:

W Apache error log I see this
[Tue Sep 01 08:20:02.915639 2015] [:error] [pid 18311] [client] PHP Warning: require(/var/www/niepozwalam/bootstrap/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/niepozwalam/bootstrap/autoload.php on line 17
[Tue Sep 01 08:20:02.915737 2015] [:error] [pid 18311] [client] PHP Fatal error: require(): Failed opening required '/var/www/niepozwalam/bootstrap/vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/niepozwalam/bootstrap/autoload.php on line 17

As you see, the path /var/www/niepozwalam/bootstrap/vendor/autoload.php should be related to website root and is not.

I don't know how to solve this issue

Have another answer? Share your knowledge.