Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Application Displays List of Files Instead of "Hello Page"

I've just started working with Laravel 5, but I've been unable to show the classic Hello page yet; I only see a listing of my application files.

I've tried to change my .htaccess file, clear my cache, create a new app, but to no avail. I know PHP works fine on my server, it's only this one Laravel application that can't seem to handle it. This seems like I'm missing some obvious thing, but I don't know enough to know what I should be asking.

Here's a screenshot to demonstrate what I see:

and here's the command I used to created the app

 $ laravel new m6g

I'm working on a Mac with the stock apache2 (not set with mamp)

like image 430
krifur Avatar asked Feb 09 '15 17:02

krifur


1 Answers

Have you tried to mount your app from the terminal?

First, go to the folder on the terminal using cd and

Then run the following command:

php artisan serve

then you will be able to access your app from http://localhost:8888

like image 168
codeforce Avatar answered Sep 19 '22 23:09

codeforce