permission issues when changing DocumentRoot

Problems with the Linux version of XAMPP, questions, comments, and anything related.

permission issues when changing DocumentRoot

Postby kulgan » 17. November 2006 21:10

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
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby underdone » 17. November 2006 22:10

How did you enter this into the httpd.conf file? Also make sure that there isn't root only access in the document root.
User avatar
underdone
 
Posts: 34
Joined: 15. October 2006 04:56
Location: Albuquerque, NM

Postby kulgan » 17. November 2006 22:14

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...
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby underdone » 17. November 2006 22:25

Try giving lampp read/write privileges for the folder and everything in it.
User avatar
underdone
 
Posts: 34
Joined: 15. October 2006 04:56
Location: Albuquerque, NM

Postby kulgan » 17. November 2006 22:28

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?
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby underdone » 18. November 2006 00:03

cd to the directory above web and type "ls -l" too see what the current permissions for the contents.
User avatar
underdone
 
Posts: 34
Joined: 15. October 2006 04:56
Location: Albuquerque, NM

Postby kulgan » 18. November 2006 00:22

before, it said "drwxr-xr-x", after chmodding, it is obviously "drwxrwxrwx"
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby underdone » 22. November 2006 21:38

Double check your .htaccess files and permissions for those folders in httpd.conf, in fact post a copy of both if you can.
User avatar
underdone
 
Posts: 34
Joined: 15. October 2006 04:56
Location: Albuquerque, NM


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests