phpMySQLAdmin – Debian Quick Q&D Install

This describes a quick and dirty phpMySQLAdmin installation on Debian. Just to be clear – this is NOT the way to install this on a public/production server!

# Install the module, use default configuration, specify password to existing DB
root@server:/$ apt-get install phpmyadmin
 
# This should already be there:
# apt-get install php5-mysql
 
# Locate your php.ini file
root@server:/$ updatedb
root@server:/$ locate php.ini
/etc/php5/apache2/php.ini
  
# Activate the MySQL extension
# (Error message: "The mysqli|mysql extension is missing. Please check your PHP configuration.")
root@server:/$ nano /etc/php5/apache2/php.ini
--> Add:
-->   extension=mysqli.so
 
# Add access to phpMyAdmin web interface to the default/root web page
root@server:/$ cd /var/www/html
root@server:/var/www/html$ ls -s /usr/share/phpmyadmin

Here we go: http://127.0.0.1:80/phpmyadmin/

Leave a Reply

Your email address will not be published. Required fields are marked *