PHP Configuration Windows | Linux

(Note:To install PHP and IIS on your Windows 7,Vista, Server 2o 003, or Server 2008 machines, head over to    and click the giant Install  PHP button.)
to install on ubuntu
1.    sudo -s              // To become super user
2.    apt-get update
3.  apt-get install lamp-server^  // to install lamp
4. apt-get install apache2      // To install apache

5.  /etc/init.d/apache2 restart   // To restart apache
6.  /etc/init.d/apache2 reload   // To reload apache

sudo chmod 777 -R /var/www/    //To give all permissions to www folder in ubuntu
To Start
Apache :  /etc/init.d/apache2 start/stop
mysql :  service mysql start/stop

To uninstall
apt-get purge mysql-server
apt-get purge apache2

Go EDIT-> SETTING->SFTP-> add pem key file->convert to ppk and save it.-> OK
PORT : 22
Protocol: sftp
Logon: Normal
USER name-> ubuntu
Password: blank
now connect
To connect with RDS mysql insatance
mysql -h -u root -p
Enter Password

mysql> mysql-h localhost -u root -p password

to update document root open Apache->httpd.conf and change

DocumentRoot "c:/wamp/www/dropbox/www

Ec2(phpmyadmin web access)

Link apache and phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf

Reload apache
sudo /etc/init.d/apache2 reload