Ubuntu 8.04 as LAMP machine?

Brett Alton brett.jr.alton at gmail.com
Mon Jun 9 21:32:31 UTC 2008


> What is the difference between using tasksel and apt-get install apache2
> php5 php5-mysql etc?
>
> I just got up a VM on my machine at home with a standard 8.04 install,
> with the LAMP option installed by the install script.  It gave me this:
>
> Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch
>
> SO I need to check with the webdevs that the patch will work ok with our
> apps, though it looks like this is going on with 5.2.4 PHP builds in
> Lenny also...
>
> What is the difference between a standard Debian network install (with
> no extra packages chosen), and a default Ubuntu install with no options
> in Tasksel chosen?
>
> Andrew.
>
> --
> ubuntu-server mailing list
> ubuntu-server at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam
>

You can actually see the physical code changes by search for packages
in Ubuntu's Launchpad.

For example:

Apache2: https://launchpad.net/ubuntu/+source/apache2
PHP5: https://launchpad.net/ubuntu/+source/php5

If you click on a release number, it will provide you with three files:

    * apache2_2.2.8.orig.tar.gz (5.8 MiB)
    * apache2_2.2.8-4ubuntu2.diff.gz (128.2 KiB) <-- this is the
difference between Debian and Ubuntu in diff/patch format
    * apache2_2.2.8-4ubuntu2.dsc (1.7 KiB)

Other than that, there isn't any difference between installing a LAMP
package using the installer, tasksel or aptitude, one merely gives you
more freedom than the other.

For example, I may just want a plan ol', unconfigured Ubuntu server up
in VMware so I can copy it as a default and re-use it for many many
applications and testbeds, each with its own specific need.

You can of course use the installer if you prefer or tasksel like so:

sudo tasksel install lamp-server

I also like to run a script like this to set up my localhost on a
desktop machine:

#----------
# Install Apache, PHP, MySQL and phpMyAdmin
sudo aptitude install apache2 php5 mysql-server phpmyadmin &&

# Remove Apache's default web directory
sudo rm /var/www &&

# Create a localhost folder for the current user
mkdir $HOME/localhost &&

# Link Apache's default web directory to localhost in the current user's home
sudo ln -s /var/www $HOME/localhost &&

# Link phpmyadmin to http://localhost/admin
ln -s /usr/share/phpmyadmin $HOME/localhost/admin
#----------

Its all preference!

-- 
Brett Alton
brett.jr.alton at gmail.com

Do you really need to print this email? Help preserve our environment!




More information about the ubuntu-server mailing list