LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2005, 08:27 AM   #1
Tamara
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 13

Rep: Reputation: 0
Strange thing with Apache error: Forbidden...


Hi all,

I hope this is the right forum for my question. I hope so, since I always seem to find the right solutions from you people. Here's my problem:

I'm working on a virtual host. successfully installed php, mysql etc.
I've uploaded some stuff on my wwwroot which is:

/home/httpd/vhosts/default/htdocs/

installed awstats, and here is the strange thing- I have a folder named:

awstatsicons with some gifs jpgs etc. when I try to view files from that folder, I get:

Forbidden
You don't have permission to access /awstatsicons/other/hp.png on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

but when I change the folder name from awstatsicons to lets say: icons,
It's fine! I get no error and I could see the file. (The same happened with another folder, once I changed the name I didn't get the 'forbidden' error any more) I tried googling to see if I could find a similar story. I didn't.(Everyone semed to say to place an index.htm file in the home directory, which I did)

Any ideas?

Thanks, really appreiciate if someone could hrlp me out here.

Tamara
 
Old 06-12-2005, 08:51 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Are you possibly using a linux distro that has selinux enabled?

FWIW: I had a very similar problem using apache on a FC3 based system even after I did a chmod 777 on the directory that was forbidden. Once I disabled selnux, all was fine with apache and I could reset the directory permissions back to normal.
 
Old 06-12-2005, 08:57 AM   #3
Tamara
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 13

Original Poster
Rep: Reputation: 0
To be honest, I don't know (thats why I'm a newbie)

How can I check if I've got selnx running?
 
Old 06-12-2005, 09:34 AM   #4
Tamara
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 13

Original Poster
Rep: Reputation: 0
Well, unfortunately, SElinux does'nt seem to be running (or maybe I didn't check this correctly , I just tried 'ps -ef')

Any more ideas?

I'm getting desperate...

Thanks,
Tamara
 
Old 06-12-2005, 09:46 AM   #5
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I don't know much about selinux, but it's not a process that runs in userspace. i.e. ps I believe its a compiled option when you build the kernel.

On my fc3 system, I edited /etc/selinux/config and set the SELINUX variable to SELINUX=disabled.

Then rebooted. Thats it!
 
Old 06-12-2005, 09:55 AM   #6
Tamara
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for your reply,

...I don't have a /etc/selinux in fact I searched all files using

find / -name *selinux* -print

and didn't get anything, so my guess is that its not running?

-Tamara
 
Old 06-13-2005, 02:42 PM   #7
Tamara
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 13

Original Poster
Rep: Reputation: 0
P-L-E-A-S-E!!!!


Any other ideas, guesses? (anything is welcome)


Thanks,
Tamara
 
Old 06-14-2005, 05:11 AM   #8
Tamara
LQ Newbie
 
Registered: Apr 2005
Location: Israel
Posts: 13

Original Poster
Rep: Reputation: 0
I'd like to add that here is my httpd.include file, which contains my vhosts configuration:

ServerName rssjump.prod.phx1.secureserver.net
ServerAdmin root@rssjump.prod.phx1.secureserver.net

DocumentRoot /home/httpd/vhosts/default/htdocs

<Directory "/home/httpd/vhosts">
AllowOverride None
# Options SymLinksIfOwnerMatch
Options +Indexes FollowSymLinks
Order allow,deny
Allow from all
# php_admin_flag engine off
</Directory>


<Directory "/var/mailman">
AllowOverride None
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>

<IfModule mod_userdir.c>
UserDir disabled
</IfModule>
<IfModule mod_ssl.c>

</IfModule>

<IfModule mod_ssl.c>

</IfModule>

<IfModule mod_ssl.c>

</IfModule>


Thanks,
Tamara
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange thing in Apache log nerdstat Linux - Networking 3 07-19-2004 10:54 AM
Apache: Forbidden Error Ninja Cow Linux - Software 2 12-07-2003 01:24 PM
Apache forbidden error!!!!!!!!!!! RKris Linux - Software 5 11-24-2003 08:17 AM
Apache 2.0.4 .. FORBIDDEN error CRego3D Linux - Software 6 05-15-2003 11:44 AM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 08:47 AM


All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration