So you have decided to get a Cloud Server and you want to install a LAMP stack on your server. Well this is totally possible. All you have to do is issues these few commands.

After you issue these commands the server will install: Apache, PHP 5.3, MySQL

# Update and then install LAMP stack on a Debian 6 Server
aptitude -y update; 
aptitude -y dist-upgrade; 
aptitude -y install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl php-pear libssh2-php apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert mysql-server language-pack-en-base;
reboot;