Install LAMP (Apache, MySQL, Php) server on ubuntu

The simplest way is:

sudo apt-get install lamp-server

 

For separated installation use

# Install Apache

sudo apt-get install apache2

# Install PHP5

sudo apt-get install libapache2-mod-php5

# Then you have to enable the php module

sudo a2enmod php5

# Install MySQL

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

# Restart Apache

sudo service apache2 restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s