LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   phpMyAdmin error: client denied by server configuration: /usr/share/phpMyAdmin (http://www.linuxquestions.org/questions/linux-server-73/phpmyadmin-error-client-denied-by-server-configuration-usr-share-phpmyadmin-808011/)

Kropotkin 05-15-2010 09:26 AM

phpMyAdmin error: client denied by server configuration: /usr/share/phpMyAdmin
 
Hi all,

I am trying to install phpMyAdmin on my Fedora 12 desktop following the instructions given in this HowTo: Installing Apache2 With PHP5 And MySQL Support On Fedora 12 (LAMP)

I've installed phpMyAdmin using yum. I've made no changes to /etc/httpd/conf.d/phpMyAdmin.conf since I will only be logging in locally.

According to the HowTo, I should now be able to open phpMyAdmin, like this http://192.168.2.2/phpmyadmin, but I get a 403 error from Apache. I see this line in the Apache error file:
Code:

Sat May 15 16:02:34 2010] [error] [client 192.168.2.2] client denied by server configuration: /usr/share/phpMyAdmin
Something must be missing here. Any ideas?
Thanks.

bathory 05-15-2010 12:31 PM

Hi,

First make sure it's not SELinux the culprit.
And then edit /etc/httpd/conf.d/phpMyAdmin.conf and use:
Code:

<Directory /usr/share/phpMyAdmin/>
  order deny,allow
  deny from all
  allow from 192.168.2.0/24
</Directory>

Regards

Kropotkin 05-15-2010 12:55 PM

Fixed, thanks.

Not sure why the line
Code:

allow from 127.0.0.1
wasn't sufficient; I am trying to log in phpmyadmin on my own desktop here.


All times are GMT -5. The time now is 02:43 AM.