Jonh Doe
Jonh Doe

Reputation: 761

Laravel Installation directory location

Laravel's documentation does not explicitly say where to execute "laravel new project_name"? Should it be executed at the webserver's root that is htdocs or www? I use WAMP server in Windows.

Upvotes: 1

Views: 270

Answers (2)

user2094178
user2094178

Reputation: 9464

It should be executed at the parent folder of htdocs or www.

The laravel folder can't live in htdocs, as it will expose all sensitive files.

After that, you must map laravel_myapp/public to something as htdocs/myapp.

You can also symlink the laravel_myapp/public folder to where you want in htdocs.

Upvotes: 1

Asur
Asur

Reputation: 387

Depending on your needs, but I would put it in htcdocs/www because is the default folder configured in apache by WAMP, anyway you can change the documentroot of your server if you want.

As long as you have the right folder permissions and the project is created under your root folder laravel shouldn't have any problem with that.

Hope this helps you :)

Upvotes: 1

Related Questions