Website back up, WordPress comes back from the grave

WordPress is back up and running again.

While Habari (http://www.habariproject.org) is a quiet well rounded piece of blogging software, and I’ve finally managed to get my head around blog theme templates, it is simply missing extra functionality that still only exists in WordPress.

Now, to get an idea of the installation.

Server: Ubuntu 11.10
Host: Linode

After backing up all of the required data, I deleted the last Ubuntu virtual disk and started again from scratch.

Apart from the standard server installation, the following commands were run:

apt-get update
aptitude safe-upgrade
tasksel
*Select LAMP Server*

After the installation of Apache, MySQL and PHP has completed, Virtual Servers need to be created. Both dddanmar.net and fffreak.net are hosted from the same platform:

rm /etc/apache2/sites-available/00-default
vi /etc/apache2/sites-available/00-VHOSTS
DocumentRoot /var/www/dddanmar.net
ServerName dddanmar.net
ServerAlias *.dddanmar.net
DocumentRoot /var/www/fffreak.net
ServerName fffreak.net
ServerAlias *.fffreak.net


Once that’s done, enable the new site

a2ensite 00-VHOSTS
service apache2 reload

Now, Apache will warn that the two /var/www folders do not exist. Installing WordPress and creating some symlinks solves this problem:

apt-get install wordpress
sudo ln -s /usr/share/wordpress /var/www/dddanmar.net
sudo ln -s /usr/share/wordpress /var/www/fffreak.net

Now, if you visit either domain WordPress complains about a lack of configuration files. Let’s start the WordPress configure script that comes from Ubuntu’s APT repos:

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n fffreaknet fffreak.net
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n dddanmarnet dddanmar.net

Now, the sites are available. Make the next step quickly or someone else may configure your blog! If you have done this for multiple VHOSTS, make sure you visit the other blogs and set them up to.

The WordPress demo site loads, so lets get some themes. I quickly jumped on to http://wordpress.org/extend and found some new themes:

wget http://wordpress.org/extend/themes/download/simpleblocks.1.0.1.zip
unzip simpleblocks.1.0.1.zip
wget http://wordpress.org/extend/themes/download/cammino.2.0.0.zip
unzip cammino.2.0.0.zip

Activate the themes for each site and presto, done!

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

“Fusce sapien elit Nulla at eros ligula. Phasellus non felis sapien. Nulla at eros ligula. Phasellus non felis sapien.”