LinuxQuestions.org
Visit Jeremy's Blog.
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 06-17-2005, 07:57 AM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
why is apache giving me a 404 error


Ok the php file am accessing and the directory it's in has the following permissions

owner (logged in) read/write
group same
others read

But I keep getting the forbiden access error when i try accessing it locally via either 192.168.0.2 or 127.0.0.1

Also it's not just php files it's html files as well. It's a fresh LAMP setup on fedora core 3 with apache 2.0.54.

I have set the document root to /home/steven/web (exactly as it is in httpd.conf) and i have set the directory permission tag within the httpd.conf. I dont have a .htaccess file either.
 
Old 06-17-2005, 09:03 AM   #2
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
chmod 755 to your file ,but i think this is not a permission error, what errors u r getting in your apache error logs.
 
Old 06-17-2005, 09:29 AM   #3
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
[Fri Jun 17 14:25:25 2005] [error] [client 127.0.0.1] (13)Permission denied: access to /test.php denied
[Fri Jun 17 14:25:25 2005] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied

why? I did the chmod command on my php file as well GRRRR. Like i said the directory permissions are fine arent they
 
Old 06-17-2005, 09:43 AM   #4
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
ya chmod to 755 it will work try ....
 
Old 06-17-2005, 10:16 AM   #5
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
geez it was becos the /home/steven by default can only be accessed by steven. It works now yay!!
 
  


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 giving the error :Could not determine the server's fully qualified domain name bcf2 Linux - Server 46 10-15-2013 04:45 AM
odd Apache 404 error Seventh Linux - Software 1 03-27-2005 04:43 AM
trailing slash in Apache gives 404 errors rabbate Linux - General 6 04-30-2004 09:34 AM
Apache custom 404 documents Punker51 Linux - Software 2 12-06-2003 04:23 PM
(404)error johncla Linux - Networking 1 03-25-2001 07:09 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration