The default Apache web page shows for your project.
You have Apache installed and have created a Laravel project, but the web page returned by your browser is the default Apache web page.
Create an Apache Virtual Host for your project.
laravel:/etc/apache2/sites-available$ sudo vi myapp.conf
Have the contents of the file match what’s below.
Save the file, then continue below.
laravel:/etc/apache2/sites-enabled$ sudo ln -s ../sites-available/myapp.conf
laravel:/etc/apache2/sites-enabled$ sudo service apache2 restart
If you’re running a virtual machine under Vagrant, you may want to change the user and group to avoid permission issues.
To do this:
laravel:/etc/apache2$ sudo vi envvars
Change the lines below to contain the desired user and group
Save the file and restart apache.
This solution assumes several things.
Your apache version is the type that places virtual hosts in
Your Laravel project is in
You have myapp.localhost.com in your hosts file (the host file on your host operating system, where you’re browser will run)
If the assumptions above are correct you should be able to point your browser to http://myapp.localhost.com and see your Laravel web application.