Every so often I export the contents of my blog as a chunk of xml as backing your stuff up is always a good idea. I recently had the idea that it would be nice to load it into a locally running version of wordpress so I can do things when I’m offline like figuring out links to older articles whilst writing new posts.
I found a fairly comprehensive set of instructions of how to install wordpress on ubuntu which mentions version 2.1. Current is 2.9.2 but everything still seems to work.
I did deviate from the script slightly for the apache configuration. Ubuntu goes way over the top in my opinion with Including everything so I commented out ports.conf and embedded the code directly in apache2.conf. I also got rid of the NameVirtualHost directive which would have meant that I needed to change the port in two different files in sync.
Apache2.conf
# Include /etc/apache2/ports.conf #NameVirtualHost *:8080 Listen 8080 <IfModule mod_ssl.c> # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443 </IfModule>
Httpd.conf
ServerName localhost <VirtualHost *> Alias /images "/var/www/images/" <Directory "/var/www/images/"> Options Indexes MultiViews FollowSymLinks AllowOverride all </Directory> Alias /blog "/var/www/blog/" <Directory "/var/www/blog/"> Options Indexes MultiViews FollowSymLinks AllowOverride all </Directory> </VirtualHost>