403 Forbidden

aswally
aswally used Ask the Experts™
on
I have set myself up a Mandrake 9.0 box for testing stuff

I did everything and used Webmin to config it all and it seemed fine.  

I wanted to setup so I could upload stuff from my WinXP box, and the easiest way was to use the users webspace so I created a public_html in my users home dir, yet when I try to access http://192.168.0.6/~andrew/quoteengine.php (my first PHP srcipt, which works fine in the webroot) I get the 403 error.  

I checked permissions and everything and they are all set to read and excute on the PHP files.  

Can you help

Thank You
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
check your userdir configuration in httpd.conf.

if you are still having problem please post the userdir section here. We can try to solve your problem.

Author

Commented:
I have checked the userdir setting, its set to allow all conections, I have also checked all the access controls.  

I think the problem may be that I created the public_html dir as root, I'm not sure on this as, my father had to borrow the computer to test something and I haven't been able to do any more with this.  

Thanks anyway

Andrew

Author

Commented:
Well, I now have this same problem on another computer, the userdir part is the default for Mandrake 9.0

I tried a few things but nothing helped.

HELP!!!
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

have you checked the user permissions on the folder and files in the user home.
aswally

Did you check the error log?  Try (as root)..

cd /var/log/httpd
tail -f error_log

I guess you got error such as "client denied by server configuration" ??

Author

Commented:
Thanks I set the permissons on all the files to 777 and also the dir but still nothing, I don't get it.  

I can't try anything just at the moment, I'll try as soon as possible and then get back to you,

ok

Thanks Again
Check the httpd.conf configuration for the user directory

Author

Commented:
Thanks bansidhar but, I already did that before I came here, that is set right anything else and it gives a 404 error instead
then check the .htaccess file

can you post the error details from the error log file here?

Author

Commented:
sorry guys, that computer died awhile back and the problem does not exist on my Mandrake 9.1 box.  So I'll give the points to those that I consider most helpful

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial