LAMP stands for Linux, Apache, MySQL, PHP.
You can have a fully working and already configured LAMP system on a Debian Linux installing the following modules:
apt-get install apache2-mpm-prefork
apt-get install lynx
apt-get install openssl
apt-get install php4 php4-gd libapache2-mod-php4 php4-pear php4-mcrypt
apt-get install mysql-server php4-mysql
To edit configuration files, you can install JED, and editor which is more user friendly than VI:
apt-get install jed
Use this command to see which version of Apache 2 you have installed:
usr/sbin/apache2 -v
You can customize Apache 2 settings editing these files:
jed /etc/apache2/apache2.conf
jed /etc/apache2/sites-available/default
Don't forget to restart Apache after reconfiguring it:
/etc/init.d/apache2 restart
You can install phpMyAdmin to handle MySQL databases easily:
apt-get install phpmyadmin
and Webalizer to have updated stats of your website:
apt-get install webalizer
Configuration files for Webalizer can be found here:
/etc/webalizer.conf
/var/log/apache2/access.log