Every Flavour Beans

“The time has come…to talk of many [technologies].” –Lewis Carroll(’The Walrus and the Carpenter’)
Development Tools. Web Frameworks. GNU/Linux. Nokia N800. Video Encoding.

November 14, 2006

Installing Complete LAMP Stack on Ubuntu 6.10(Edgy Eft)

Filed under: GNU/Linux — tabrez @ 10:34 pm

One way to get the complete LAMP(GNU/Linux + Apache + MySQL + PHP) stack installed and configured on Ubuntu operating system is to use the Server install CD version of the distribution. Ubuntu 6.10 Server Edition, for example, provides a menu option during the installation to install a complete LAMP server on the machine. No desktop environment or unnecessary packages will be installed, so this is the preferred way to run a dedicated LAMP stack on a machine. Once installed this way, one can easily login to this machine remotely and tweak the default configuration settings.

For those who would like to run the LAMP stack on their personal desktops(for development and testing purposes for example), selecting a few packages will get all the required components installed. There is an easier way though: Select the LAMP task from the Synaptic Package Manager and install everything with a single selection:

  • Start Synaptic Package Manager, go to Edit -> Mark Packages by Task… and select LAMP Server from the list of options. Click OK and then click the “Apply” button on the toolbar.

This will install the default list of packages that are part of LAMP installation. I prefer to install additional packages too, like GUI tools to work with the databases. The following two commands will install LAMP and some additional packages related to it:

Basic LAMP Installation:

sh# sudo apt-get install apache2 mysql-server mysql-client-5.0 php5 php5-mysql

Additional LAMP related packages:

sh# sudo apt-get install php5-cgi php5-cli php5-gd php5-imagick php5-json php5-odbc postgresql php5-pgsql php5-sqlite php-auth php-doc mysql-admin mysql-query-browser apache2-doc pgadmin3 pgdocs-pdf phppgadmin

To know more about these additional packages, search for them in the Synaptic Package Manager and read their descriptions. Though PostgreSQL is not technically a part of LAMP stack, it is a good alternative to MySQL DBMS and and fits equally nicely with Apache and PHP combination. These are the applications that I install on my machine; to browse through the entire collection of packages related to the LAMP stack, search for ‘apache’, ‘php’ and ‘mysql’ in Synaptic Package Manager(Edit -> Search) and select your own favourite packages to install from the result list. Installing the complete LAMP stack and related packages is similar for Kubuntu operating system, with Adept Package Manager taking the place of Synaptic Package Manager.


If you want to receive future posts by email, enter your email address here:

Related Posts:

  • EasyEclipse is the Best Packaged Distribution of Eclipse Platform
  • ‘wget -c’ Bug in Download Script Generated by Synaptic in Ubuntu 7.10(Feisty Fawn)
  • Update or Install Applications on Debian/Ubuntu Without an Internet Connection
  • Installing Ubuntu & Kubuntu Dapper(6.06 LTS) For NVidia GeForce Cards
  • Ubuntu 6.10 Annoyance: `failed to initialize HAL` error
  • Setting Up Rails Development Environment on Ubuntu GNU/Linux
  • Simple Way to Update Ubuntu Edgy With Slow/No Internet Connection

  • Readers who viewed this page, also viewed:


    8 Comments »

    1. Awesome, Im trying it now!

      Quote

      Comment by Gunnard — December 8, 2006 @ 5:48 am

    2. Hi,

      Interesting article. I have no broadband. I have the Dapper server cd. I have installed KDE. I
      would like to install LAMP from the server CD. Whenever I try the apt-get install LAMP or
      apt-get install any of the LAMP packages I get an error message. I have checked the cd and I
      can see that the packages are alphabetically listed in folders.

      So how do I install LAMP from the server CD from KDE. Thanks.

      Quote

      Comment by Joe — December 8, 2006 @ 5:28 pm

    3. Did you try the following command?

      sh# sudo apt-get install apache2 mysql-server mysql-client-5.0 php5 php5-mysql

      What error(s) do you get?

      Quote

      Comment by tabrez — December 10, 2006 @ 3:08 pm

    4. Hi,

      I found some info. I ran sudo apt-cdrom add and I added the server packages list from the cd. I have added the components to the laptop. I now have another problem. I now have new entries in the menu.lst for grub. One seems to be for the server software the other for KDE. I have no idea what it means or what to do. Thanks

      Quote

      Comment by Joe — December 12, 2006 @ 8:33 pm

    5. we where searching compiler c c++ to install it in the Debian (edubuntu plateforme) no success,
      is a place to get it.

      thank you, and happy holidays to all .

      code name : lurius

      Quote

      Comment by michael — December 19, 2006 @ 12:39 am

    6. [...] Every Flavour Beans » Installing Complete LAMP Stack on Ubuntu 6.10(Edgy Eft) very useful. (tags: howto lamp ubuntu) [...]

      Quote

      Pingback by its about time» Blog Archive » links for 2006-12-19 — December 20, 2006 @ 7:35 am

    7. I followed all of the instructions up to the basic LAMP installation. Apache2 works fine, but PHP does not. When I click on a link to a PHP file/page, Ubuntu tries to open it with Gedit.

      Is there additional configuration required?

      Quote

      Comment by surfer — February 4, 2007 @ 5:44 am

    8. i reccomend phpmyadmin (in multiverse)

      here is a what i use:

      apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin

      Quote

      Comment by James — March 17, 2007 @ 2:53 am

    RSS feed for comments on this post. TrackBack URI

    Leave a comment

    Subscribe without commenting


    Copyright (c) 2006, 2007 Tabrez Iqbal.
    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved. A copy of the license is included in the section entitled "GNU Free Documentation License".


    Powered by WordPress
    This website is hosted by Dreamhost