All the commands listed here have to be typed in a terminal (in the menu,).
To install the Apache web server, install the apache2 package:
$ sudo apt-get install apache2
To make sure it is installed, start firefox and go to the url http://localhost.
The web pages have to be copied in /var/www by default.
To install PHP, install the libapache2-mod-php5 package:
$ sudo apt-get install libapache2-mod-php5
To make sure it works edit /var/www/test.php:
$ sudo gedit /var/www/test.php
Put this line in the file and save it:
<?php phpinfo(); ?>
Go to http://localhost/test.php in firefox, you should see the PHP informations page.
To install a database server (MySQL), install the mysql-server and associated tools:
$ sudo apt-get install mysql-server php5-mysql
A password will be prompted for the root user. It is the MySQL administrator login/password, needed to perform actions on databases.
To install a frontend for the sql server use:
$ sudo apt-get install phpmyadmin
Questions about phpmyadmin configuration will be asked, select apache2 for the first question, select no for the second. Go to http://localhost/phpmyadmin in firefox to use the frontend. The login is root and the password is the MySQL one.