The template for this HOWTO can be found on: http://linux.justinhartman.com/Wordpress_Installation_on_Debian

Install Wordpress

apt-get update
apt-get upgrade
apt-get install wordpress

Debian squeeze only offers Wordpress < version 3.3. With this version Annotum doesn't work correctly. So, update Wordpress to latest version:

cd /usr/share/
wget http://wordpress.org/latest.tar.gz &&
tar xvfz latest.tar.gz

Modify The htaccess File

Open up the Wordpress htaccess file:

vim /etc/wordpress/htaccess

Add the following to the file - make sure you only add what isn't there already:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^.*$ http://%1%{REQUEST_URI} [QSA,R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Save and close the file.

Create Apache Config Files

vim /etc/apache2/sites-available/sciencereviews.eu

Add the following to your first new file:

ServerName sciencereviews.eu
ServerAdmin edwin@base-camp.net
DocumentRoot /var/www/sciencereviews.eu
DirectoryIndex index.php

AllowOverride All
Order Deny,Allow
Allow from all

Save this file and create the following new one:

vim /etc/apache2/sites-available/www.sciencereviews.eu

Add the following to your second new file:

ServerName www.sciencereviews.eu
ServerAdmin edwin@base-camp.net
DocumentRoot /var/www/sciencereviews.eu
DirectoryIndex index.php

AllowOverride All
Order Deny,Allow
Allow from all

Once you've saved this second file you should see two new files in /etc/apache2/sites-available/ namely sciencereviews.eu and www.sciencereviews.eu.

Create A Symbolic Link To Your Wordpress Files

cd /var/www/
ln -s /usr/share/wordpress sciencereviews.eu

Enable Your New Sites

a2ensite www.sciencereviews.eu
a2ensite sciencereviews.eu
/etc/init.d/apache2 restart

Setup MySQL Database & Wordpress Config File

The following command should have setup a new database and created a config file at /etc/wordpress/config-sciencereviews.eu.php.

/usr/share/doc/wordpress/examples/setup-mysql -n sciencereviews sciencereviews.eu

An error occured while setting up the database. Solution according to: http://www.linuxquestions.org/questions/linux-server-73/mysql-permission-denied-but-i-am-root-800647/

chmod 700 setup-mysql

Change permission for config

chgrp www-data /etc/wordpress/config-sciencereviews.eu.php
/usr/share/doc/wordpress/examples/setup-mysql -n sciencereviews sciencereviews.eu

Done!

Setup Wordpress & Annotum

sciencereviews.eu in the browser leads us to the Wordpress-start page.

DON'T try to install Annotum with the inbuilt functions in the Wordpress menus; there are several permission issues and thousands of disastrous explanations on the www which don't solve them. Just take the simple & safe way:

Install Annotum theme as explained on https://github.com/annotum/annotum.

For example via Subversion:

cd /usr/share/wordpress/wp-content/themes
svn co https://username@svn.github.com/Annotum/Annotum.git annotum

That's it! Log in to your Wordpress administrator dashboard, navigate to Appearance > Themes and Activate the theme.