Skip to main content

Simple quick ubuntu 8.04 setup as LAMP (couple of drupal "specific" tweaks)

An article from ComputerMinds - Building with Drupal in the UK since 2005
23rd Feb 2009

Mike Dixon

Senior Mind
Hey, you seem to look at this article a lot! Why not Bookmark this article so you can find it easily in the future?

I'm always hunting around for these various bits every time I do an Ubuntu rebuild - so I thought I would collate them all into one place. This is what we use for our dev boxes, not certified for a production webserver. Note this is specifically for Ubuntu 8.04 - it may well apply to other versions of Ubuntu however.


sudo apt-get update
sudo apt-get install mysql-server-5.0
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install php5-mysql
sudo apt-get install php5-gd
\#enable the rewrite module for clean URLs [EDIT] thanks to Jadwigo for this
a2enmod rewrite
\# optionally install phpmyadmin, some clients like it :)
sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
/etc/init.d/apache2 restart
\# we use subversion
sudo apt-get install subversion

Then it's a case of tweaking the vhosts configuration, to make sure AllowOverride is set to All for your DocumentRoot directory, this will enable Drupal's .htaccess file to kick in, and that's it - your should be all set to start developing on your Ubuntu environment

Hi, thanks for reading

ComputerMinds are the UK’s Drupal specialists with offices in Bristol and Coventry. We offer a range of Drupal services including Consultancy, Development, Training and Support. Whatever your Drupal problem, we can help.