change the DocumentRoot directory in Apache 2?

BigToque

Lifer
Oct 10, 1999
11,700
0
76
I've just installed Apache 2 and PHP 5 so I could test PHP scripts before uploading them to my server (it's just more convenient)... I've changed the document root in the httpd.conf file but it still points to the default /htdocs folder.

What else do I need to change?
 

JW310

Golden Member
Oct 30, 1999
1,582
0
0
Did you restart the apache server after updating the httpd.conf file? The server only loads the file when it's first told to run, so if you make any changes to the conf file while the server is actually running, you have to restart the server for those changes to take effect.
 

BigToque

Lifer
Oct 10, 1999
11,700
0
76
Originally posted by: JW310
Did you restart the apache server after updating the httpd.conf file? The server only loads the file when it's first told to run, so if you make any changes to the conf file while the server is actually running, you have to restart the server for those changes to take effect.

Thank you very much :)