Drupal Installation Step by Step
This is a review of the steps we took to install drupal on the server and to get Sirsi/Sopac up and running. Go to John’s site for full documentation
This for us was pretty clear cut, we decided to use the Ubuntu 220.127.116.11 server. The reason was because we hate windows and love Unix. Also the fact that LAMP came bundled and we are fundamentally lazy.
The install is easy, one thing to remember is that the server doesn’t come with a GUI so we just went ahead and installed that. The command is
sudo apt-get install ubuntu-desktop
All is good with the world. To be honest the above command didn’t work for some reason the day that I tried to install it but worked just fine the next. I think they were having problems with the site. If this happens to you just wait a while.
Next download drupal from http://www.drupal.org we are working with version 6.6. I generally create a place for all my downloads /home/srobinson/mydownloads. Again lazy I just don’t like to download more than once. Better to have and not need than need and not have.
Now I went ahead and extracted the file in that location
tar –zxvf drupal-6.6.tar.gz
I know you can get all kind of fancy with the tar but I do it this way and then just move it to the location I want.
mv drupal.6-6 to /var/www
I then created a soft link
ln –s html ./drupal.6-6
Again lazy plus as it is easy to type html and have the flexibility in the future to move link to a different directory structure.
You do need to go in and edit /etc/apache2/sites-available/default to change the document root. Really this is a small price to pay.
So if everything looks good so let’s go ahead and restart the apache server.
/usr/sbin/apache2ctl –k graceful.
Ok so before I get super excited and do the drupal install I need to check a few things out.
I always write this and it comes in handy for checking prerequisites.
So checking prereqs I find that have the following at this point
Php version 5.2.4
Mysql is supported and the version is 5.0.5
So that looks good now let’s get all drupally and do the install.
cp /var/www/html/sites/default/default.settings.php ./settings.php
chmod a+w settings.php
Remember you are going to have to change the rights back
chmod a-w settings.php after the install.
Next we need to create a database
mysqladmin –u username –p create database name
Since we are going to be dealing with databases and again I am lazy do not want to endless search my mind or the internet for command line mysql statements I have gone ahead at this point and installed phpMyAdmin.
You can find it at
They have really good instructions, so just follow along.
After this was installed I did need to install the following as I was getting a error on the myPhpAdmin page and this solved that problem.
sudo apt-get install php5-mcrypt
I then proceeded onto the drupal install. In my case I opened a browser and typed http://drupal.acpl.lib.in.us. I know I have great imagination for naming servers.
Now you should be able to just follow the install instructions.
There were still a couple of gotchas in the process. I needed to edit the cron file to get rid of that error that after the install was complete. I also needed to install
sudo apt-get install php5-gd
This is needed for the graphic library. Do you need it, well no but I hate to see error messages and the install took about 30 sec. I will leave it up to you.
Before we install sphinx we needed to do the following
sudo apt-get install libmysql++dev
sudo apt-get install make
sudo apt-get install g++
sudo apt-get install libg++
This enables apache’s mod_rewrite. I needed this enabled to install subversion.
sudo a2enmod rewrite
sudo /etc/init.d/apache2 force-reload
Install the following to get PEAR::MDB2 support
sudo apt-get install php-pear
sudo pear upgrade-all
sudo pear install mdb2
sudo pear install mdb2#MySQL
sudo pear install pear/MDB2#mysqli
At this point your install should be complete.