Install phpmyadmin GUI on kali linux

1.Test whethere already installed or not
apache2 -v && mysql -V && php -v
if show server version, mysql version, and php version,it installed. If not, go to my previos post(RUNNING PHP ON KALI) to get install.


2.Starting apache2 and mysql
service apache2 start && service mysql start


3.Change Password
mysql -h localhost -u root -p
In the Enter Password, just enter don’t type anything
set password for root@localhost = password(”);


4.Update and install
apt-get update


5.Install phpmyadmin
apt-get install phpmyadmin


6.Choose apache2 and type password which is previously set in the following dialog boxes


7.Configure phpmyadmin into apache2
7.1:Find apache config
find /etc -name apache.conf

7.2:Find apache2 config
find /etc -name apache2.conf

7.3:Include it
echo -e “\nInclude PATH1” >> PATH2
eg: echo -e “\nInclude /etc/phpmyadmin/apache.conf” >> /etc/apache2/apache2.conf


8.Browse http://localhost/phpmyadmin now


Running PHP on Kali

Before Install, you can test that http://localhost on browser then it will show “Unable To Connect” or similar message.

1.Installing MySQL 5
apt-get install mysql-server mysql-client

2.Installing Apache2
apt-get install apache2(Apache2 server is not started yet)

3.Start Apache
service apache2 start