Support the ongoing development of Laravel.io →
Installation Configuration

Hi,

so I followed the quick-start guide and installed Laravel into a directory called lartest directly into my Sites-folder and changed the rights -R on storage. Now I'm running up to something I could not find in the docs nor here in the forum

  1. When I try to open http://localhost I just get the directory listing
  2. When I attach server.php everything runs fine and I can also add new routes (like the users from the guide)
  3. When I go into the public dir, everything runs fine like in 2

But I keep my head banging around 1. So:

Is this intentional behaviour? Am I missing something? Or am I doing something wrong?

Last updated 2 years ago.
0

If you see the php files in folders it might mean you haven't configured your server to run php code. Can you run simpliest php script like this?

<?php
phpinfo();
Last updated 2 years ago.
0

This is by design. The "public" directory is the entry point into your application, you either need to specify it in your URL for development purposes, or for production - set it as the DocumentRoot, or inside a VirtualHost (Apache). For security purposes, anything below the public directory should not be accessible through your web server.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nabittened nabittened Joined 11 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.