This HowTo will learn you how to install Apache2, PHP5, MySQL and phpMyAdmin on Debian, in my case Ubuntu 8,1.
First of all you may go root. Open your terminal and write:
sudo su
After this I suggest that you make an update on your system by writing:
apt-get update
Now it’s time for download and install all the packed, write:
apt-get install apache2 php5 php5-mysql mysql-server-5.0 phpmyadmin
You will get a questions about root password for MySQL, write what you like to but do not forget it. You will also get a question to what you will install MySQL, choose Apache2.
Try go to, http://localhost – if it works you will get a message like “It works!” on your screen.

The only thing we have left to do is configure phpMyAdmin. Edit file “/etc/apache2/apache2.conf” by go to it or write in your terminal:
gedit /etc/apache2/apache2.conf
Remember that you have to be root. Insert the following line at the bottom of the file and save:
Include /etc/phpmyadmin/apache.conf
Restart Apache2:
/etc/init.d/apache2 restart
Now you can go to http://localhost/phpmyadmin and login with your root user and password.
