Setup LAMP Server

A LAMP server is a Linux server that has Apache, MySQL, and PHP setup. The P can sometimes be Perl or Python but the most common is PHP.

Install Apache & PHP

Debian & Ubuntu

apt-get install apache2 php5 libapache2-mod-php5

CentOS

yum install httpd httpd-devel

yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml

Install MySql & Setup Database

Debian & Ubuntu

apt-get install mysql-server mysql-client php5-mysql

CentOS

yum install mysql mysql-server mysql-devel