LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-19-2007, 08:28 PM   #1
njoyzrd
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
Apache/1.3.34 Server - Forbidden 403 error


I'm new to the Linux/Apache world and I'm hoping someone can help me with a permissions problem I'm having with Apache. First and foremost, I installed Apache into Ubuntu 7.04 by using the apt-get install apache command. Everything installed properly and I could access the default Apache page at localhost/index.html. I then replaced the default index.html file with a photo album I created. It's index.html file is located at /var/www/index.html and displays properly. However the images and thumbnails are in sub directories under /var/www (such as /var/www/slides/). When I click on an image I get the following error.

Forbidden
You don't have permission to access /slides/photo shoot 087.html on this server.

Apache/1.3.34 Server at 192.168.10.2 Port 80

I've read tons of forums on editing the httpd.conf file and possibly adding a .htaccess file, but I believe I don't need any .htaccess files and below is what I have in my httpd.conf file...

DocumentRoot /var/www

<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>

<Directory /var/www/>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

I look forward to any help, thanks!!!
 
Old 06-19-2007, 08:41 PM   #2
Hep
LQ Newbie
 
Registered: Dec 2005
Posts: 25

Rep: Reputation: 15
did you check the permissions of the sub dirs at filesystem level?
 
Old 06-19-2007, 08:51 PM   #3
njoyzrd
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I haven't, but I assumed (yes, bad idea) that because the http://localhost/index.html page I created displays that the sub folders would inherit the same permissions. I just checked and noticed though that my httpd.conf file also contains the following 2 lines...

User www-data
Group www-data

Could this or does this have a bearing on the permissions?
 
  


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
Apache 403 Forbidden Error On Every File agtlewis Linux - Software 5 09-02-2006 12:25 AM
Facing 403 forbidden error for apache server in fedora 5 gopi_apparao Linux - Networking 7 08-04-2006 10:36 AM
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 10:32 AM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 09:35 PM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:57 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