LAMP – How to Access phpMyAdmin in LAMP

lampphpmyadmin

I have installed LAMP on ubuntu 12.10, and I want to acced PhpMyAdmin, and I don't know it's URL.

I tried to access this URL : http://localhost/phpmyadmin

But I got this problem :

Not Found

The requested URL /phpmyadmin was not found on this server.

Apache/2.2.22 (Ubuntu) Server at localhost Port 80

And this the instructions I've followed to install lamp:

http://www.howtoforge.com/ubuntu_lamp_for_newbies

Best Answer

Assuming you followed those installation instructions to the letter, phpmyadmin should at least be installed on your computer. However, Apache configuration needs to be added for it to work.

When you installed phpmyadmin, it should have automatically set up its configuration for Apache, making it accessible at http://localhost/phpmyadmin/ (it's possible you may need the trailing slash?).

However, in case it didn't, you can re-run the initial configuration step with the following command:

sudo dpkg-reconfigure -plow phpmyadmin

When changing Apache configuration, it should usually restart Apache automatically, but in case it doesn't, you can always restart Apache with:

sudo service apache2 reload

(Some changes require restart instead of reload).