07 February 2012

HOW TO FIX "The requested URL /phpMyAdmin was not found on this server."

Should you get a 404 "Not Found" error when you point your browser to the location of phpMyAdmin (such as: http://localhost/phpmyadmin) this is likely caused by not checking the 'Apache 2' selection during installation. To redo the installation run the following:


Code:
 sudo dpkg-reconfigure -plow phpmyadmin
Then select Apache 2 for the webserver you wish to configure.

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:
Code:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload
 
And you to edit the file /etc/phpmyadmin/apache.config

in the bottom part of the doc there is this:

# Authorize for setup


AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup

Require valid-user


# Disallow web access to directories that don't need it


Order Deny,Allow
Require valid-user--------------------here there was as Deny from All---------------


Order Deny,Allow
Require valid-user--------------------same as above--------------------------------

source : click here



No comments: