Friday, December 7, 2012

Install Web Server on Ubuntu 12.04 and 12.10

LAMP stands for Linux Apache MySQL PHP. Here we will try to install Web Server in the Linux operating system Ubuntu 12.04 and 12.10
okay, we just go into it. First we get into that super-user to facilitate the installation process.

1. Open your terminal and into the super user by typing
sudo su

2. Once inside now we install MySQL 5. How typing the command like this:

apt-get install mysql-server mysql-client

during the installation process will be completed you will be faced with the interface to enter the password:
- New password for the MySQL "root" user: (enter the password or be left blank)
- Repeat password for the MySQL "root" user: (ulangin password before)

3. MySQL after installation is complete, now we get into the process intalasi apache2. way as follows:

apt-get install apache2

after installation, to check his apache2 running or not, please open your browser http://localhost/ typing experience
if the installation process is complete it will display the page that reads:

"It Works!"

4. Next, we will install PHP5. way as follows:

apt-get install php5 libapache2-mod-php5

after PHP5 installation is complete, restart the apache2 it by typing the command

service apache2 restart

5. and reopen your bowser. by typing the address http://localhost/ in your browser. to try PHP5 is installed or not, you can create a php file with the www folder. how to type a command like this:

vi / var / www / info.php

then panggila in your browser: http://localhost/info.php

6. php library to complement you can do a command like this:

apt-cache search php5

or you can perform a direct installation commands are like below:
apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imap php5-Imagick php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5 php5-tidy php5-xsl-XMLRPC

7. after the installation is complete, open your browser. by typing the address http://localhost/info.php

LAMP installation process is complete, may be useful.

No comments:

Post a Comment