Tutorial
Installing Apache + PHP + MySQL 5 + phpAdmin
Update the list of apt:
$ Sudo apt-get update
$ Sudo apt-get upgrade
Now it's time to install Apache 2 and PHP 5.
$ Sudo apt-get install apache2 php5
To test if everything was installed correctly, create the file index.php with the information of PHP5:
$ Sudo vi / var / www / index.php
Copy the content below to the new file:
<? Php
phpinfo ();
?>
Save the file and access the address
http://localhost/. If the information of PHP appear, everything is installed correctly.
With Apache and PHP running chubby, it's time to install MySQL
$ Sudo apt-get install mysql-server-5.0 php5-mysql
Now change the administrator password root MySQL:
$ Sudo mysqladmin-u root your_pass
For the service to run straight along with PHP5, restart Apache:
$ Sudo / etc/init.d/apache2 restart
To administer MySQL, install phpMyAdmin, which is one of the best tools for this purpose.
$ Sudo apt-get install phpmyadmin
Access the address
http://localhost/phpmyadmin/ and provide the root login and password that you set in MySQL "