Need help w/ 403 on symbolic link folder

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

Need help w/ 403 on symbolic link folder

Postby research-experiment » 11. December 2009 22:38

I did a symbolic link with a folder ~/html_data into /opt/lampp/htdocs/$USER
Code: Select all
sudo ln -s ~/html_data /opt/lampp/htdocs/$USER


So when I try an access anything at localhost/{username}/ I get a 403 error
can someone help me out here?


running ubuntu 9.10 32-bit
research-experiment
 
Posts: 4
Joined: 11. December 2009 22:27

Re: Need help w/ 403 on symbolic link folder

Postby research-experiment » 14. December 2009 03:42

bump
research-experiment
 
Posts: 4
Joined: 11. December 2009 22:27

Re: Need help w/ 403 on symbolic link folder

Postby Nobbie » 14. December 2009 10:38

What was the value of $USER when executing the "ln -s" command? Or is there really a folder "/opt/lampp/htdocs/$USER"?

Ist there any data in ~/html_data?

Do you have "Options FollowSymLinks" for your DocumentRoot (see httpd.conf)?

Are there sufficient rights for the user which executes the Apache process to read ~/html_data?
Nobbie
 
Posts: 8759
Joined: 09. March 2008 13:04

Re: Need help w/ 403 on symbolic link folder

Postby research-experiment » 15. December 2009 20:52

Nobbie wrote:What was the value of $USER when executing the "ln -s" command? Or is there really a folder "/opt/lampp/htdocs/$USER"?

Ist there any data in ~/html_data?

Do you have "Options FollowSymLinks" for your DocumentRoot (see httpd.conf)?

Are there sufficient rights for the user which executes the Apache process to read ~/html_data?

1. The Value of $USER is the username
2. I wouldn't have any trouble accessing the files in the folder if there were none
3. Could you maybe provide an example, because FollowSymLinks is not commented out. I'm using the same httpd.conf that came with xampp.
4. I would assume "chmod 755" would suffice? Or am I missing something?
research-experiment
 
Posts: 4
Joined: 11. December 2009 22:27

Re: Need help w/ 403 on symbolic link folder

Postby Nobbie » 16. December 2009 22:18

research-experiment wrote:3. Could you maybe provide an example, because FollowSymLinks is not commented out.


Could you maybe read the documentation instead?

Is there any <Directory ...> for ~/html_data (where ~ is to replaced by /home/username or whatever) in httpd.conf which grants access to that folder (especially "Allow From All")?
Nobbie
 
Posts: 8759
Joined: 09. March 2008 13:04

Re: Need help w/ 403 on symbolic link folder

Postby research-experiment » 17. December 2009 17:18

Nobbie wrote:Could you maybe read the documentation instead?

Maybe you could read the httpd.conf file instead of being an jerk.

Nobbie wrote:Is there any <Directory ...> for ~/html_data (where ~ is to replaced by /home/username or whatever) in httpd.conf which grants access to that folder (especially "Allow From All")?

Like I said I was working with the httpd.conf file that camp with the xampp linux tar. So obviously yes. I'd post an excerpt, but I think I'll go to that other forum where people are actually helpful and nice instead of like you.
research-experiment
 
Posts: 4
Joined: 11. December 2009 22:27

Re: Need help w/ 403 on symbolic link folder

Postby Wiedmann » 17. December 2009 17:28

I did a symbolic link with a folder ~/html_data into /opt/lampp/htdocs/$USER

4. I would assume "chmod 755" would suffice? Or am I missing something?

Apache must have at least read access to the whole path (upwards), not only "html_data")

I get a 403 error

Maybe the "error.log" can give you a hint.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests