Friday, January 27, 2012

How to easily Installing LAMP on Ubuntu



LAMP is an acronym for mention Linux, Apache, MySQL and PHP which is a web-based development environment, where the open source Linux as the operating system, Apache as the web server, MySQL as the relational database management system and PHP (Preprocessor Hyper Text) is object-oriented programming language.

As a Linux user maybe friends want to know how to install the new LAMP. There are many approaches to install a LAMP server on Linux. The simplest approach and is most often used is to use the command line in Terminal.
 
This Tutorial will show you how to easily install LAMP server in Ubuntu Linux.

Note :
This practice uses a distro Ubuntu 11.04 "Natty Nawhal", Whereas to do a server installation process, first make sure the LAMP is connected to the Internet or DVD repository Ubuntu 11.04.

The steps are as follows:
 I. Instaling

  1. Open a Terminal via the menu: Applications → Accessories → Terminal
  2. Type the following command:

    $ sudo apt-get install lamp-server^
  3. Enter the new password for MySQL root user :
  4. Membuat password root MySQL
II. Pengujian

A. Apache
Test the Apache web server by using your favorite browser application (Firefox, Chrome, etc.) by typing the address http://127.0.0.1 or http://localhost in your browser.

B. PHP
To find out that your PHP installation and back-end modules have been successfully integrated with the Apache web server, create a web page through the Terminal in the following way :
  1. sudo echo ”<? phpinfo() ?>” > /var/www/phpinfo.php 
  2. Run the service apache2
    $ sudo service apache2 restart

    or it could also use command below :

    $ sudo /etc/init.d/apache2 restart
  3. Open the application browser such as Mozilla Firefox, and enter the address http://127.0.0.1/phpinfo.php or http://localhost/phpinfo.php.


    If the browser window to perform information page as in the example image above, then the PHP module have been integrated with the Apache web server.

C. MySQL
To test the MySQL database type the command below in Terminal :

$ mysql -u root -p



if you come across information such as the example above, your sucessfull run MySQL.

Thanks for visiting him,,
hopefully useful ...
source : http://kslcs.blogspot.com

0 komentar:

Post a Comment

Hello, visitors please fill your comments here.

thank you !

regards, Rikies.