I just installed the LAMP (Linux+Apache+MySQL+PHP) structure on my Ubuntu machine. Installing the structure is pretty easy. But getting it all running seamlessly is the another thing. After installing the things I typed http://127.0.0.1 (http://localhost/) on my Browser and it said “It Works”. But when I tried to open the phpmyadmin (http://localhost/phpmyadmin/) which is used to manage your MySQL backend and tables it shows the 404 Not Found error.
By Default your www directory is created here /var/www and the phpmyadmin configuration files are stored in /usr/share/phpmyadmin. So the trick involved here is to point your the later location or directory from your former directory. To do this open your terminal and run the following command.
sudo ln -s /usr/share/phpmyadmin /var/www
This will create the pointer to /usr/share/phpmyadmin in /var/www
Now open the http://localhost/phpmyadmin/ and you are good to go. If you still face any problems feel free to ask and comment.