Skip to main content
ComputerMinds

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

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…

Mike DixonSenior Mind · · 1 min read

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

Written by

Mike Dixon, Senior Mind

Meet the team