Skip to main content

Install LAMP in Ubuntu 11.04

 This document will walk you through the installation of what is known as a "LAMP" system: Linux, Apache, MySQL and PHP. Depending on who you talk to, the P also stands for Perl or Python, but in general, it is assumed to be PHP. I run CentOS on my servers; these directions were written for CentOS/Red Hat/Fedora. I have had requests for SuSE (another RPM-based distribution) as well as Debian-based systems, so I will work on variants of these directions for those distributions in the future (donations might help speed that process up!). The main difference between the distributions is in the paths to the startup scripts. Red Hat systems used /etc/rc.d/init.d and SuSE uses /etc/init.d.
If you are a web developer proficient in PHP& MySQL, you may be using the popular WAMP Server (Windows, Apache, MySQL and PHP) in your windows platform. The more powerful Linux and Unix platforms have a similar package called LAMP which stands for Linux, Apache, MySQL and PHP and serves the purpose of web development based on Open Source concept. Apache is the Web server, MySQL is the relational database and PHP (Preprocessor Hyper Text) is an object oriented programming language.
There are many approaches to installing LAMP server in Ubuntu 11.04/10.10. The simplest and most likely to be used approach is to use the following command in terminal:
sudo apt-get install lamp-server^
The command initiates the download of LAMP server to your PC with a password prompt and when finished, its done!
Open your browser and type the following:
http://localhost/
and hit enter. If you get the following screen, then Apache definitely works.
To access MySQL, you can use the following URL:
http://localhost/phpmyadmin
The following screenshot depicts PHP Myadmin being explored with your browser.
Finally to test PHP, place a php file (eg: test.php) in your www folder with the following script:
<?php
phpinfo();
?>
Now call the file through your browser  by typing http://localhost/test.php
There are other procedures to install LAMP, like using tasksel or installing Apache, MYSQL and PHP separately.

Comments

  1. Ubuntu install, can I install on one computer, then move the drive to another computer to use it?
    Thank-you
    Silver MLM

    ReplyDelete
  2. @Ridhi It is possible that Ubuntu generates some errors during boot process, because of some drivers must be configured during installation process.

    ReplyDelete
  3. The main difference between the distributions is in the paths to the startup scripts.
    London Heathrow

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Register at Paypal

General requirements Paypal account holders must be at least 18 years old or older and have: Address email = For your Paypal account username in the future. Credit Card Users = Paypal from Indonesia currently only able to use credit card to activate / verified accounts first, and only from certain bank credit card accepted. To be able to withdraw from paypal, you must have one of the Visa credit card, Visa debit card, or prepaid Visa card. Stages Register Paypal Before you start to register, prepare your data to create a Paypal account, such as Email, Name, Address, Phone, credit card number (Make sure the Name, Address, Phone that will you fill out for registration with the data on your credit card) 1. Go to www.paypal.com site 2. Click SignUp Now! to register 3. Furthermore, there is a choice state, because you are in Indonesia choose Indonesia. Then select the type of account you want, for new applicants in Indonesia are advised to choose a personal account fir...

Preliminary Draft Peek Windows 8

Become the dominant operating system is a separate claim for the Microsoft. After some time ago managed to release Windows 7, now it seems we will gasp with new concepts that will be bundled with Windows 8 will be. Even now been leaked a few pictures from Win7China, a review of the initial concepts of the operating system successor to Windows 7 that. Now that Microsoft's own party has just entered the third stage of research. From the picture can be seen that the major changes to the Taskbar, installation drivers and cloud computing integration. Overall did the initial concept of Windows 8 is still adopting the concept of its predecessor. Some differences can be seen between Windows 7 and Windows 8 is one of them on the emergence notification when installing drivers. In Windows 7, users will only receive notification that the drivers are installed automatically. While later on Windows 8, the user will know about how far the process that was running until the process is co...

Motherboard MSI Presents the Big Bang For Gamers

It has a sophisticated computer and meet all the needs of its owner is the dream of all people. Especially if you're one person who made the computer as a machine to play heavy games, is certainly hoping to have a computer that can support your hobby is. MSI tries to make it happen for you by presenting the motherboard that allow gamers to simultaneously run multiple GPUs from different brands as well. Surely this is something else than others. Which motherboard is only reserved for the GPU than just one producer, is now becoming more freely available for gamers to use multiple GPUs differ according to their wishes. Big Bang Fuzion Motherboard MSI output is turned by a Hydra LucidLogix 200 parallel processor which is equipped to work with several GPU, CPU or chipset to provide scalable performance of multi-GPU 3D graphics in computing environments. "The cost is affordable, flexibility and performance remains to determine the attributes among the game lovers w...