Wednesday, March 4, 2015

Phpmyadmin on Ubuntu 14.04

To install phpmyadmin on ubuntu 12.04 follow this steps:

1) ctrl + alt + T to open your terminal
2) type sudo apt-get install phpmyadmin
3) select Apache-2 on pop window and click enter
4) type in your mysql admin username and password and click enter
5) Congrats!! phpmyadmin is successfully installed on your machine.
Now..
open apache2.conf which is located in etc/apache2 using gedit or vim and add the following command.
# phpMyAdmin Configuration
Include /etc/phpmyadmin/apache.conf
click on save
6) restart your apache: sudo service apache2 restart
7) Go to your browser and type localhost/phpmyadmin in address bar. BINGO! it should work

If the above step fails don't worry follow this:

1) reconfigure your phpmyadmin by typing following command in your terminal:
sudo dpkg-reconfigure -plow phpmyadmin.

Click yes when configure phpmyadmin pop window shows up
enter mysql username and password and type "phpmyadmin" when pop window ask for database to be given access to administrator.
Select Apache2 and click yes. Phpmyadmin should configure
Create a symbolic link :
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf (use this for ubuntu < 13.10)
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf (use this for ubuntu >= 13.10)
reload your apache:
sudo a2enconf phpmyadmin
sudo /etc/init.d/apache2 reload
Go to your browser and type localhost/phpmyadmin in address bar. BINGO! this should work.

Ref: https://help.ubuntu.com/community/phpMyAdmin
http://howtofindsolution.blogspot.com/2012/12/how-to-fix-phpmyadmin-404-error-in.html
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04

No comments:

Post a Comment