add webserver

Installing The Web Server

sudo apt-get install apache2 php5 libapache2-mod-php5

restart:
sudo service apache2 restart
OR
sudo /etc/init.d/apache2 restart

Enter the I.P. address of your Raspberry Pi into your web browser. You should see a simple page that says "It Works!"

Install MySQL

sudo apt-get install mysql-server mysql-client php5-mysql

Install FTP
Take ownership of the web root:
sudo chown -R pi /var/www

install vsftpd:
sudo apt-get install vsftpd

sudo nano /etc/vsftpd.conf

Make the following changes:

    anonymous_enable=YES to anonymous_enable=NO
    Uncomment local_enable=YES and write_enable=YES by deleting the # symbol in front of each line
    then go to the bottom of the file and add force_dot_files=YES.

sudo service vsftpd restart

ln -s /var/www/ ~/www