This tutorial is based on Debian Etch, but it might work aswell on Ubuntu. First we install Apache2 and PHP5
# apt-get install apache2 php5 libapache2-mod-php5 php5-gd
After the installation has finished you’ll find the configuration file for Apche in /etc/apache2/ and your default web folder is /var/www.
Now open nano and create a test file in order to see if PHP is working.
# nano /var/www/phpinfo.php
Add the following
<?php phpinfo(): ?>
Open a browser and point it to your webserver http://ipaddress/test.php. You should now see information about PHP.
Next we install Mysql5.
# apt-get install mysql-server mysql-client php5-mysql
Now we need to set a password for root.
# mysql mysql> USE mysql; mysql> UPDATE user SET Password=PASSWORD(‘newpassword’) WHERE user=’root’; mysql> FLUSH PRIVILEGES; mysql> exit;
# apt-get install phpmyadmin
Then open the configuration file for Apache and add the following at the bottom of the page
# /etc/init.d/apache2 restart
The final piece is to install Proftpd.
# apt-get install proftpd
Open the configuration file for Proftpd
# nano /etc/proftpd/proftpd.conf
Turn off UseIPv6. You can look around in the configuration file to see if there’s anything else you might need. If you have several users connecting you can make Proftpd lock them in their home folder. Also make sure that local users can write to their folders.