LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2011, 12:17 PM   #1
amritpalpathak
Member
 
Registered: Feb 2010
Posts: 116

Rep: Reputation: 15
Smile 403 - Forbidden(Apache error)


I have installed apache server successfully and have worked it on from many months.I dont know what changes by mistake i have made in apache.conf or httpd.conf file.Now when i browese to "localhost:3000",it gives the message
403 - Forbidden

Somebody please help

Thanks
 
Old 04-20-2011, 12:28 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi,

I doubt it has something to do with the conf file (alone) - is the requested folder world readable? Is there an "index" in there, 403 generally means you (the surfer/visitor - from the standpoint of the server) try to access a resource (folder) that you cannot read. Apache must have read rights though...
But...now that we are on the subject, check the conf file for dirctory permissions, a sample:

Quote:
<Directory "/home/domain/www">
Options +Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
Hope to have helped a bit...

Thor
 
Old 04-21-2011, 07:20 AM   #3
amritpalpathak
Member
 
Registered: Feb 2010
Posts: 116

Original Poster
Rep: Reputation: 15
The content of my httpd.conf file are
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7
PassengerRuby /usr/bin/ruby1.8
<VirtualHost *:80>
ServerName www.yourhost.com
DocumentRoot /home/amrit/amritpal/public
<Directory /somewhere/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>

is it ok and show file has a direct permisson?

Thanks
 
Old 04-21-2011, 09:46 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Okay, let's disect this frog...

Quote:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
Does the module have execute rights, if not, try:

Quote:
chmod +x /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
Next...

Quote:
<VirtualHost *:80>
are you hosting more than one site? If so look into this http://httpd.apache.org/docs/2.0/mod/core.html or (granted, somewhat dated...) http://httpd.apache.org/docs/1.3/vhosts/name-based.html for named hosting, as I see a www entry in there...

I'll be watching this thread!

Thor
 
Old 04-21-2011, 12:53 PM   #5
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
You have <VirtualHost *:80> defined but you're browsing to port 3000. Do you have <VirtualHost *:3000> defined anywhere?
 
Old 04-21-2011, 01:08 PM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
(woops - missed that one...)

firewall?

And, eh, something that keeps itching me: where is the backup you made before editting such important stuff? If you made server backups before - the "working" file should/could be in there...

Last edited by ButterflyMelissa; 04-21-2011 at 01:10 PM.
 
  


Reply



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
New apache install: 403 Forbidden error beebopbogo Linux - Software 14 05-25-2009 04:36 PM
Forbidden 403 error with my apache entz Linux - Software 2 12-17-2007 05:33 PM
Apache: 403 Forbidden Error daemonkl Linux - Newbie 4 10-14-2007 12:15 PM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:35 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
Open Source Consulting | Domain Registration