Page 1 of 1

permission issues when changing DocumentRoot

PostPosted: 17. November 2006 21:10
by kulgan
I wanted the DocumentRoot to be in a folder of my home directory, rather than in /opt, as that is where I had all the web files stored. When I do that, however, I get a 403 Forbidden error. I presume it has something to do with the LAMPP's files not having the same permission as the target files?

Any pointers appreciated!

-K

PostPosted: 17. November 2006 22:10
by underdone
How did you enter this into the httpd.conf file? Also make sure that there isn't root only access in the document root.

PostPosted: 17. November 2006 22:14
by kulgan
I changed the section

Code: Select all
#
# 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 "/opt/lampp/htdocs"


changing the line to

Code: Select all
DocumentRoot "/home/kulgan/web"


It was as if un-indexed folders were denied...

PostPosted: 17. November 2006 22:25
by underdone
Try giving lampp read/write privileges for the folder and everything in it.

PostPosted: 17. November 2006 22:28
by kulgan
is there an easy way of doing that in one command? I don't really feel like going through all the subdirectories with chmod 777 *...

update:
chmodding 777 to web and all immediate contents did not do the trick.
Is there perhaps something else that needs to be changed for it to permit a different location outside the tree?

PostPosted: 18. November 2006 00:03
by underdone
cd to the directory above web and type "ls -l" too see what the current permissions for the contents.

PostPosted: 18. November 2006 00:22
by kulgan
before, it said "drwxr-xr-x", after chmodding, it is obviously "drwxrwxrwx"

PostPosted: 22. November 2006 21:38
by underdone
Double check your .htaccess files and permissions for those folders in httpd.conf, in fact post a copy of both if you can.