View Full Version : 403 for Joomla,xoops on Apache localhost
desertwind
06-02-2006, 01:15 AM
Off late, I was trying to install Joomla and xoops locally. I've Apache 2.0.24 and MySQL 4.1.16 with php 5.0.4 running on my FC4 box.
Both xoops and Joomla is giving an Error 403 while trying to access using my browser. I'ce set file permissions correct. Is there anything i forgot ?
Both are working (the same uploaded) perfectly on my hosting server.
I'm managing a few sites locally, they are woking too.
This is the error, for referance.
Forbidden
You don't have permission to access /xoops on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.54 (Fedora) Server at localhost Port 80
desertwind
07-02-2006, 03:23 AM
None to help me ?
I feel its a very basic thing that i forgot. Can anyone remind me ?
GNUrag
07-02-2006, 11:51 AM
Alias /xoops "/usr/share/xoops/"
<Directory "/use/share/xoops/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
This should remove your access denied errors, additionally make sure that the directory in concern is readable by Apache2.
desertwind
07-02-2006, 03:29 PM
I was wondering why GNURag is not answering me. Well, thanks.
I tried that one already, but still giving the same 403.
mediator
10-02-2006, 11:53 PM
Well now I have known how to configure a webserver and aliases after extreme difficulties...It seems u have not set the permissions correct...Try to set the permission of the whole path of "/xoops" with 755 and files in that too!
If u have created another username like "/home/user"..tjhen u need to do "chmod 755 /home/user"!
desertwind
11-02-2006, 12:57 AM
I've set all file permissions correct. I don't know whats wrong.
mediator
11-02-2006, 11:43 PM
Tell me everythin how u tried to access it and on what port and n what ip (locally->127.0.0.1)? I think i can help ya! Have u tried the defaults?
desertwind
12-02-2006, 02:47 AM
I've setup Apache (really long time ago, no problems yet). I usually store my local websites on /var/www/html/ (Which, ofcourse is apache DirectoryIndex). Everything was working fine. So i tried to install Joomla on my PC, so that after customising all the stuff, i can upload it to my website.
i place it on /var/www/html/Joomla, and tried it accessing by pointing my browser to
http://localhost/Joomla , which gave me a Error 403.
So i checked for file permissions, and found everything was 755. I run an additional
chmod -R 755 Joomla/
But still the problem persits. Then i tried moving the directory to inside one of my working folder, bitz.
http://localhost/bitz is working, but
http://localhost/bitz/Joomla is not.
Some three days back I downloaded xoops, followed the same procedure, and got the same error.
Both Joomla and xoops are working remotely, when uploaded to my site.
desertwind
12-02-2006, 05:14 AM
Problem Solved!!!
It was an issue with SELinux.
Just run the following as root
chcon -R -t httpd_sys_content_t /var/www/html/
And it was solved.
praka123
12-02-2006, 08:44 AM
So SELINUX restrictions and values should be known before configuring any network services controlled by selinux.. :( .in my computer institute they disable selinux during install itself..
desertwind
12-02-2006, 11:56 AM
So SELINUX restrictions and values should be known before configuring any network services controlled by selinux.. :( .in my computer institute they disable selinux during install itself..
Thats what everyone's doing. They simply disale selinux. Because it's such a headache. BTW, It's a part of improved Security.
mediator
12-02-2006, 02:08 PM
Yea i too configured the selinux for aliases to work and create the web server !!!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.