Page 1 of 1

403 Error XAMPP version 1.7.7 [SOLVED]

PostPosted: 15. November 2011 05:14
by mikntwd
Hello.

I got error 403 access forbidden when going to my new web page that I made. I assigned in httpd-vhosts.conf file.
How Do I Fix problem?

<VirtualHost *:80>
ServerAdmin admin@raucholz.com
DocumentRoot /home/keith/WWW/raucholz.com
ServerName raucholz.com
ServerAlias http://www.raucholz.com
ErrorLog /home/keith/WWW/raucholz.com/logs/error.log
Customlog /home/keith/WWW/raucholz.com/logs/access.log common
</VirtualHost>

Re: 403 Error Xampp version 1.7.7

PostPosted: 15. November 2011 06:58
by JonB
OK -

I have a couple questions:

A. - what was the URL you used in your browser?

B. - what user/group are owners of /home/keith/WWW/raucholz.com?

Good luck
8)

Re: 403 Error Xampp version 1.7.7

PostPosted: 15. November 2011 08:57
by mikntwd
Username is Keith
In browser URL I type either pc ip address or raucholz.com. Either address results in same - error 403.

I run xamp on fedora Linux and web site directory is in my "/home/Keith/www/raucholz.com directory"

Thank you

Re: 403 Error Xampp version 1.7.7

PostPosted: 15. November 2011 14:05
by JonB
One question, and a suggested change:

A. - "WHY" would you enter the PC's IP address ???? Are we missing part of the picture???? Are you not working on the console? Did you make hosts file entries, or use a nameserver?

B. - Try making the owner of the "/home/Keith/www/raucholz.com" directory nobody:root

Code: Select all
chown -R nobody:root /home/Keith/www/raucholz.com


Let's try answering the first question, and make the ownership change before we tackle what may or may not be right with the vhosts entries.

Good Luck
8)

Re: 403 Error Xampp version 1.7.7

PostPosted: 16. November 2011 01:37
by mikntwd
Resolution to Problem...

As you can see the /home/myusername folder has rw, r , r. You need to give "x" to that folder and the /home folder

chmod o+x /home
chmod o+x /home/myusername

Re: 403 Error Xampp version 1.7.7

PostPosted: 16. November 2011 02:16
by JonB
glad you found it -

I'll have to add that to my 'Linux fixes for XAMPP'.

Good Luck
:D