LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache 403 forbidden error only for phpmyadmin (https://www.linuxquestions.org/questions/linux-newbie-8/apache-403-forbidden-error-only-for-phpmyadmin-639959/)

elthox 05-05-2008 02:24 AM

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

bathory 05-05-2008 02:54 AM

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

elthox 05-05-2008 03:03 AM

Quote:

Originally Posted by bathory (Post 3143037)
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

bathory 05-05-2008 04:10 AM

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.

elthox 05-05-2008 04:16 AM

Quote:

Originally Posted by bathory (Post 3143094)
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.


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