Results 1 to 2 of 2
Thread: change document root in lamp
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2009
change document root in lamp
I change the default "/www/var" to "/home/jesus/Dropbox/htdocs/" in the file "mysite" (copy of default).
But when I type the url: "localhost/index.html" I get the error message:
Forbidden You don't have permission to access /index.html on this server.
What's the problem??
Thank you very much!!
You need to add a <Directory ...> section in your apache's .conf file for the service. There should already be one in there for the default directory that was the previous document root. The same permissions will probably be needed. Don't forget to restart apache after you've done this.
You may still get the same warning even after doing this. Adding the <Directory ...> section tells apache to allow connections to request files from that directory. The apache user still needs filesystem read privileges to be able to read files from there before sending them out, so check that if adding the <Directory ...> section on its own doesn't work.Linux user #126863 - see http://linuxcounter.net/