Install a LAMP (Linux-Apache-MySQL-PHP) server in Ubuntu

September 8th, 2011 | 4 Comments | Posted in Linux by Vijay Gupta

This is to help people setup and install a LAMP (Linux-Apache-MySQL-PHP) server in Ubuntu, including Apache 2, PHP 5 (optionally PHP 4 in Ubuntu 6.10 and lower), and MySQL 4.1 or 5.0.

When installing from the Ubuntu 6.06 (Dapper Drake) “Server cd”, you have the option of choosing to install a LAMP setup at the initial Ubuntu installation screen. That will install apache2, php5 and mysql 5.0.

As of Ubuntu 7.04 (Feisty), all PHP4 packages have been dropped from the repositories, as the PHP4 branch is not being further developed/supported by the PHP Group.

To install the default LAMP stack in Ubuntu 7.04 (Feisty Fawn) Ubuntu 7.10 (Gutsy Gibbon) Ubuntu 8.04 LTS (Hardy Heron), 8.10 (Intrepid Ibex), 9.04 (Jaunty Jackalope), 9.10 (Karmic Koala), 10.04 (Lucid Lynx) and 11.04 (Natty Narwhal)

Ubuntu 11.04 base system does not include tasksel. First You will need to install it.

1
sudo apt-get install tasksel

Now execute the below command to install LAMP server.

1
sudo tasksel install lamp-server

Reference

https://help.ubuntu.com/community/ApacheMySQLPHP

Discussion 4 Responses

  1. demo Wrote in to say:

    Can we use same command for fedora.

  2. demo Wrote in to say:

    can v use same command foor fedora?

  3. Vijay Gupta Wrote in to say:

    @demo:sorry, but we can not use same command for fedora. You can visit this link
    http://webtechtuts.com/2011/09/23/install-lamp-server-on-fedora/

  4. Swapnil Sarwe Wrote in to say:

    Hey,

    Very nice and easy way to get lampp installed on linux. Very good post for beginners using ubuntu – like me :)

    keep posting such nice tweaks and hints.

    Good work!!

Leave a Reply

*

About Us

webtechtuts is a site by web developers aimed at web developers and designers offering articles on technologies, skills and techniques to improve how you design and build websites. We cover HTML, CSS, Javascript, PHP, Photoshop, MySql, Oracle, and TeraData.