user2899810 user2899810 - 1 year ago 71
PHP Question

Laravel 4 not working on production server

I deployed a laravel application onto an aws server in a directory that has its own domain pointing to it. However, when I go to say, which points to my public folder nothing shows up, but I know that the index file is being executed. does anyone know why this could happen. This is a fresh installation of laravel 4

Any help would be appreciated.



Answer Source

If you are sure that index.php is reached, open it and replace $app->run with

try {
} catch (Exception $e) {
    echo $e->getMessage();

You will probably now see what's going on. My assumption is that it has no permissions to write in the app/storage directory.

If that's not the case, turn on error display and reporting and see if anything comes up. Also make sure that the public folder is the document root of your application.