document roots

Hi there, first post and first time using any kind of php framework.

It’s also been a while since I coded, trying to get going again.

I’m struggling installing Yii2 on Xampp, windows 8

All ok until I get to step 4: Set document roots of your web server:

Any help on how to do that in xampp would be appreciated. I did find google it but none of the hits have been helpful so far

I hope you will find the solution here

you have to set your document root in the file httpd.conf of Apache


# DocumentRoot: The directory out of which you will serve your

# documents. By default, all requests are taken from this directory, but

# symbolic links and aliases may be used to point to other locations.


DocumentRoot "c:/xampp/htdocs/yii2/web"

<Directory "c:/xampp/htdocs/yii2/web">

    Options Indexes FollowSymLinks ExecCGI Includes

    AllowOverride All

    Require all granted