We suppose, as example, that Apache Document Root directory is in:
/mnt/hda2/www/htdocs
and we want to make service phpMyAdmin available at default path:
http://127.0.0.1/phpMyAdmin
- Remove, if exists, a previous phpMyAdmin installation:
rm -rf /mnt/hda2/www/htdocs/phpMyAdmin
- Copy phpMyAdmin directory in Apache Document Root, renaming it in 'phpMyAdmin' for simplicity:
cp -r /usr/local/phpMyAdmin-2.6.3-pl1/ /mnt/hda2/www/htdocs/phpMyAdmin
- Start Apache, if not already running.
- Start MySQL, if not already running.
Now you can access phpMyAdmin as a web application: open the following url:
http://127.0.0.1/phpMyAdmin
If everything is ok, you'll see phpMyAdmin main page.
NOTE:
If you got 'Access Denied' error, could be that root MySQL password has been changed, and phpMyAdmin configuration file has not been updated consequently.
Check password for root MySQL user in:
/mnt/hda2/www/htdocs/phpMyAdmin/config.inc.php.
in the first occurrence of:
$cfg['Servers'][$i]['password']='password';
To change password for root MySQL user, see MySQL configuration.