laravelwsod

Laravel default page blank


No error in /var/log/apache2/error.log. I installed laravel using composer.

"msg" is my application name. When I access localhost/msg/ , I can see the following listing:

[   ]   CONTRIBUTING.md 2014-01-18 18:14    145  
[DIR]   app/    2014-01-18 18:14     -   
[   ]   artisan 2014-01-18 18:14    2.4K     
[DIR]   bootstrap/  2014-01-18 18:14     -   
[   ]   composer.json   2014-01-18 18:14    697  
[   ]   composer.lock   2014-01-23 10:06     53K     
[   ]   phpunit.xml 2014-01-18 18:14    566  
[DIR]   public/ 2014-01-18 18:14     -   
[   ]   readme.md   2014-01-18 18:14    1.8K     
[   ]   server.php  2014-01-18 18:14    519  
[DIR]   vendor/ 2014-01-23 10:06     -   

When I access localhost/msg/public/ , I get a blank page (no source code). Still no arror in the apache log.

All I did, other than the installer through composer, was a git init in the msg folder.

Any idea ? I'm really confused about not having error anywhere.


Solution

  • Some things to verify:

    Try running

    php artisan serve
    

    to start the web server only for development purposes. You should have access to

    localhost:8000

    If it does not display Laravel's splash page, then there can be a problem with Composer. If it display the splash page, it could be

    Also remember to check the Laravel logs for errors in addition to Apache error logs (Two last suggestions by @fideloper in question comments)