LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-04-2004, 04:03 AM   #1
haribon
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
Apache httpd error


Hi guys!
I just completed installing the RH9 box. I'm trying to deploy a server now through Apache. I followed the documentation to the letter. The problem is that when I go to localhost i get this message:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster

Error 403

localhost
Wed 04 Feb 2004 04:51:30 PM PHT
Apache/2.0.40 (Red Hat Linux)


What does this mean? Its the all over the site. Does anyone know what sokution can bedone to fix it? Do I have to edit the congig??
 
Old 02-04-2004, 04:36 AM   #2
Nic-MDKman
Member
 
Registered: Feb 2004
Location: Sacramento, CA, USA
Distribution: Mandrake 9.2
Posts: 159

Rep: Reputation: 30
What are the permissions on the file(s) that you are accessing and the folder(s) that it/they are in? Did you make sure that they are readable by everybody? (a.k.a World readable)
 
Old 02-04-2004, 05:07 AM   #3
haribon
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Permissions

I don''t seem to recall that as part of the documentation.. Probably the <directory>.. stuff.

I can't understand it. I looking at it sideways and backwards. I even tried to allow full access to one directory but it just lessend the error. Now it says:

Forbidden

You don't have permission to access /marychiles/index.php on this server.
Apache/2.0.40 Server at 127.0.0.1 Port 80


As a consolation though, i can now run phpmyadmin.

Would you know anyway to solve this problem?
 
Old 02-04-2004, 05:13 AM   #4
haribon
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
THis is the logged error

mod_mime_magic: can't read `/var/www/html/marychiles/index.php'
(13)Permission denied: file permissions deny server access:
/var/www/html/marychiles/index.php
 
Old 02-04-2004, 05:26 AM   #5
Ashkhan
Member
 
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39

Rep: Reputation: 16
As Nic-MDKman wrote you need to change your html directory and subdirectories as well as files in them to 777.
 
Old 02-04-2004, 05:37 AM   #6
haribon
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Ashkhan
As Nic-MDKman wrote you need to change your html directory and subdirectories as well as files in them to 777.
Err... I started with RH9 two weeks ago. So I'm fairly new. What do you mean by
1. change html direcoty and subdirectories?
2. 777
3. how do make a file 'world readable"?
 
Old 02-04-2004, 08:58 AM   #7
jazernorth
Member
 
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100

Rep: Reputation: 15
chmod 655 /var/www/html/marychiles/*

777 is great if you want to give write access to the world. You only want to give read.

Also, read 'man chmod'. It will help you understand file permissions.

In '/var/www/html/marychiles/' type ls -l then on the left you will see the permissions set for each file. Make sure you allow 'rw' to user and 'r' only to group and world.

Enjoy.

JN
 
Old 02-05-2004, 04:21 AM   #8
haribon
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
THanks, Ill check this out.
 
Old 02-06-2004, 03:57 AM   #9
Ashkhan
Member
 
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39

Rep: Reputation: 16
Quote:
Originally posted by jazernorth
777 is great if you want to give write access to the world. You only want to give read.
You are right but some complex php scripts also offer configuration. These scripts need also write permissions although only temporarily. Then it is good to switch to 655 as you heve sad.
 
  


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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 06:07 PM
httpd error - multiple interface bindings (Apache) Nightblade_oz Linux - Software 2 09-24-2005 12:51 PM
signal Bus error (7) - apache/ httpd da_kidd_er Linux - Networking 1 07-08-2005 11:51 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM
Apache httpd c0c0deuz Linux - General 6 11-18-2002 11:23 AM


All times are GMT -5. The time now is 08:06 AM.

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