Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-02-2006, 01:15 AM   #1 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default 403 for Joomla,xoops on Apache localhost

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.
Quote:
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 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 07-02-2006, 03:23 AM   #2 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

None to help me ?

I feel its a very basic thing that i forgot. Can anyone remind me ?
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 07-02-2006, 11:51 AM   #3 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

Code:
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.
__________________
- --
http://www.MovieAB.com - A tiny movie mashup!
GNUrag is offline  
Old 07-02-2006, 03:29 PM   #4 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

I was wondering why GNURag is not answering me. Well, thanks.

I tried that one already, but still giving the same 403.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 10-02-2006, 11:53 PM   #5 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,453
Default

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"!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 11-02-2006, 12:57 AM   #6 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

I've set all file permissions correct. I don't know whats wrong.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 11-02-2006, 11:43 PM   #7 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,453
Default

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?
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 12-02-2006, 02:47 AM   #8 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

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.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-02-2006, 05:14 AM   #9 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

Problem Solved!!!

It was an issue with SELinux.

Just run the following as root

Code:
chcon -R -t httpd_sys_content_t /var/www/html/
And it was solved.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-02-2006, 08:44 AM   #10 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Default

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..
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 12-02-2006, 11:56 AM   #11 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

Quote:
Originally Posted by prakash kerala
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.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-02-2006, 02:08 PM   #12 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,453
Default

Yea i too configured the selinux for aliases to work and create the web server !!!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2