After install lamp server in Ubuntu 12.04, I got phpMyAdmin 404 page. I spend few hours to resolve the issue.I would like to share the solution with you.
Installing lamp server on Ubuntu 12.04.
First install tasksel, if it’s not already installed in your system.
sudo apt-get install tasksel
Then, by executing below command on your terminal. lamp-server will be installed.
sudo tasksel install lamp-server
Install Phpmyadmin in Ubuntu
If you haven’t already already installed the Phpmyadmin in your server. Please use below command on your terminal to install Phpmyadmin.
sudo apt-get install phpmyadmin
Solution for Phpmyadmin 404 page
After installation of lamp server, While i check the localhost it works fine. But phpMyAdmin throws 404 error page. So i fixed it by following instructions.
execute this command on terminal. gedit will open the appache2.conf file in your text editor.
sudo gedit /etc/apache2/apache2.conf
Then include the below line to the bottom of the appache2.conf file and save the file.
after that do the usual business, that is restarting your appache server by executing below command.
sudo /usr/sbin/apache2ctl restart
Now hit refresh on phpMyAdmin page, hope you are seeing your phpMyAdmin login screen.
Hope this helps you and saves your time !