• Read #How to add extra repositories
• Read #How to install Apache HTTP Server for HTTP (Web) Server service
• Read #How to install PHP for Apache HTTP Server
• Read #How to install MYSQL Database Server
sudo apt-get install libapache2-mod-auth-mysql
• Select either php4-mysql or php5-mysql depending on which version of PHP you installed
sudo apt-get install php-mysql
sudo apt-get install phpmyadmin
• If you installed phpmyadmin using apt-get and cannot log in, run sudo apt-get purge phpmyadmin and then sudo apt-get install phpmyadmin.
• To get PHP to work with MySQL, open the file (where is either 4 or 5 depending on which PHP you installed)
sudo gedit /etc/php/apache2/php.ini
• You’ll need to uncomment the “;extension=mysql.so” line so that it looks like this
...extension=mysql.so...
• Save the file then exit
sudo /etc/init.d/apache2 restart
• http://localhost/phpmyadmin
• If you cannot log in, set a password:
sudo mysqladmin password
• Alternative if the above doesn’t work (which it probably won’t and this probably will):
sudo apt-get install mysql-server