Setup a basic LAMP, enables you to host cool web applications. LAMP is Linux, Apache, MySQL & PHP (guess Perl or Python should qualify as well). I assume you have done at least a minimal Debian installation here.
Update & upgrade
First we make sure our packages is updated and upgraded if necessary. apt-get update && apt-get upgrade
apt-get install apache2 Type in your ip in the browser to check if it is working. If the browser tell you “It is working” it is working 😉
apt-get install mysql-server mysql-client Installation will ask you to set a root password for the MySQL server. If you need root access from remote, check out this article.
apt-get install php5 php5-mysql
Just in case, restart the apache server by /etc/init.d/apache2 restart Another method of restarting the apache server is: service apache2 restart (this work on Red Hat variants as well)
Your web site root folder will be located at /var/www So if you create a file called test.php in the web root folder, and paste this: <?php phpinfo(); ?> Then browser to (IP is just an example) http://192.168.1.20/test.php You should now see detailed information about your php setup.
There you go, you now have a basic LAMP ready to rock!