I installed php, mysql, phpmyadmin on my Ubuntu 12.04 localhost in the following steps:
I try these steps:
sudo apt-get install apache2
sudo /etc/init.d/apache2 restart
sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install php5-cli
sudo apt-get install php5-cgi
sudo apt-get install php5-mysql
sudo apt-get install php5-pgsql
sudo /etc/init.d/apache2 restart
than after i faced phpmyadmin not found error and fixed using the following answer
How to solve the phpmyadmin not found issue after upgrading php and apache?
After applying that fix I got another error message:
Forbidden You don't have permission to access /phpmyadmin on this server.
How can fix this?
sudo chown -R $USER:$USER /var/www/
andsudo chmod -R 755 /var/www