This may look like the most basic of basic questions but it's been driving me nuts for an hour.
I just installed Laravel on my dedicated server, to a "test" directory, using
php composer.phar create-project laravel/laravel /home/my_username/public_html/test 4.2 --prefer-dist
All the right files/directories appeared in the "test" directory, I had to add the permission to "my_username" to edit the files with
chown -R my_username:my_username /home/my_username/public_html/test
...and I went in to edit the basic config. I only changed the URL from localhost to http://jovansprojects.com/test (feel free to visit) and I tried opening it in my browser.
However, instead of loading the default 'home' view (looking at the routes file, that's what it should do), it displays the list of files and folders in /test/. I have not changed anything in any files except app/config/app.php where I changed the URL, but that doesn't even seem to have anything to do with it, as when I change it to anything else, the problem remains.
This is the (default) routes.php file:
Route::get('/', function()
{
return View::make('hello');
});
The hello.php view is present in the views folder as it should be.
The Laravel docs never seem to consider the possibility that the home view won't load upon installation, nor can I find this problem online.
So, any idea what the problem could be? Does Laravel need a specific port opened or something? Am I missing some config not mentioned in the installation and configuration guides?
public. Thats the one which is actually the directory you should be visiting in the browser.