You are on page 1of 2

INSTALL LAMP ON UBUNTU 11.

04

LAMP, is short for Linux + Apache + MySQL + PHP, is a software package to run a dynamic
web site and as a web server. LAMP consists of several components which all belong to the
family of open source. Namely Linux as its operating system, Apache as web server, MySQL
as the database, and PHP as the programming language.

In practice, LAMP is not in a bundle, meaning that each component separately. So stand on its
own. Both linux, apache, mysql and php its own stand. So all four are installed separately, after
installed then configured so that can go hand in hand. Although there are already in one bundle,
so apache, mysql and php (minus linux) it is in one package, just install one package has been
configured everything.

Many Linux distributions now include the LAMP package, so by installing a linux distro, all
the packages already installed, without the need to configure again. But there is also not yet
been installed. So had apache, mysql and php installed it manually.

In the distribution, apache, mysql and php consist in some kinds of packages. There are
versions of the source (tar.gz/tar.bz2), there is the rpm version (for red hat linux distribution
family), tgz (for family distro slackware), deb (for debian distros family), etc.. This time will
be discussed either how to install apache, mysql, and php into the ubuntu distro, and use its
version of the deb. The steps are as follows:

First make sure ubuntu has been installed properly and correctly,

1. Install Apache http server


sudo apt-get install apache2

2. Install php for apache server


sudo apt-get install php5

3. Install mysql database server


sudo apt-get install mysql-server

4. Install mysql for apache server


sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
Well, after the installation is complete, now entered the stage of the check, if it was installed
correctly or not. To check as follows.

Restart the apache server first


sudo / etc/init.d/apache2 restart

Check the apache service via a browser, type the following address

http://localhost

When it opens a page of the installation is correct apache

Check phpmyadmin (optional) if it is running or not. Open the following address in your
browser:

http://localhost/phpmyadmin

Enter root for the user, while the password is not necessary in the content, because the
default installation mysql password has not been set, so do not need a password. If
successfully logged in then phpmyadmin is installed correctly.

Well, that was to install a LAMP-based web server. How the above is just a standard way,
meaning that the configuration is only done as needed, so there is no password set mysql,
domain settings, etc.. So just for the basic course, to learn more then please himself,

You might also like