This article is currently incomplete and may be moved when finished. Please don't actually do anything listed here just yet.
Debian is one of the most widely used linux distros for servers. It is lightweight and uses the debian package management system. This article is going to look at installing an AMP stack in this system. We will not be covering best security practices. I repeat, we will not be covering best security practices. It is very important that you understand setting it up to run and develop from does not mean it is inherently secure. You will need to research security and impliment it on your own. So lets get started.
This article assumes you already have Debian installed and without having chosen the LAMP stack during install.
$su -c 'apt-get install apache2'it will pull in a few extra packages as well, this is normal.
Please keep the terminal open, we will continue to use it throught this tutorial.
Now Apache is installed and running. So part one is done. By default it pulls content from /var/www/ but we will do an article explaining how to make virtualhosts and have web pages run from within your home directory to make for easy editing and management.
$su -c 'apt-get install mysql-server'to install MySQL and its dependencies.
Now MySQL is installed on your system and ready to be used.
We will only cover installing PHP 5.x that is already in the Debian repositories. We do not recommend installing PHP 4.x or lower on any system production, testing, development, or otherwise.
$su -c 'apt-get install php5'to install PHP5 from the Debian repositories and its dependencies. Side Note: On my system it also uninstalled an apache package, this should be fine since the package manager knows what it is doing.
Congradulations, you now have a LAMP Stack that runs on Debian.