LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-05-2008, 02:24 AM   #1
elthox
Member
 
Registered: Oct 2006
Posts: 41

Rep: Reputation: 15
Apache 403 forbidden error only for phpmyadmin


Hi guys,

I just installed phpmyadmin in my RHEL 5 and the pages I put under /var/www are running OK. Only phpmyadmin (I have made a symbolic link called phpmyadmin linked to /usr/share/phpmyadmin) is not accessible. I have chown-ed and chmod-ed properly the directory but same think again.

One line from error log:
[Mon May 05 09:00:26 2008] [error] [client 192.168.3.131] client denied by server configuration: /usr/share/phpmyadmin/

This 192.168.3.131 is my IP. When I access the server with its Ip 192.168.3.232 the internal website is displaed properly but when i write
192.168.3.232/phpmyadmin I get the above error.

Please help me
 
Old 05-05-2008, 02:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Make sure the you have a " FollowSymLinks" among the other options in your DocumentRoot definition:
Code:
<Directory /var/www>
...
Options ...  FollowSymLinks ...
...
</Directory>
Also you should check that it's not a Selinux problem

Regards
 
Old 05-05-2008, 03:03 AM   #3
elthox
Member
 
Registered: Oct 2006
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Make sure the you have a " FollowSymLinks" among the other options in your DocumentRoot definition:
Code:
<Directory /var/www>
...
Options ...  FollowSymLinks ...
...
</Directory>
Also you should check that it's not a Selinux problem

Regards
The lines in http.conf are:

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

I dont think is a selinux problem because I have disabled it long time ago.

Thanks
 
Old 05-05-2008, 04:10 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Note that you should make sure that FollowSymLinks exists in your DocumentRoot (that is /var/www in your case) definition and not for "/". I.e. check under the <Directory "/var/www"> part of the httpd.conf.
 
Old 05-05-2008, 04:16 AM   #5
elthox
Member
 
Registered: Oct 2006
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Note that you should make sure that FollowSymLinks exists in your DocumentRoot (that is /var/www in your case) definition and not for "/". I.e. check under the <Directory "/var/www"> part of the httpd.conf.
Fixed, Thanks.
 
  


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
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 returns 'Forbidden 403' for phpMyAdmin Notwerk Linux - Software 1 01-24-2006 02:04 AM
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 - Newbie

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