LAMP is a webserver software stack common on Linux servers (LAMP stands for Linux – Apache – MySQL – PHP). To install the basic components of a LAMP server on a Debian or Ubuntu VPS, simply access your server via SSH and run the following commands:
# apt-get update
# apt-get install apache2
# apt-get install mysql-server
# apt-get install php5 php-pear php5-suhosin
# apt-get install php5-mysql
Finally, restart Apache, and everything should be functional:
# /etc/init.d/apache2 restart