Install Blogware

If you are playing with your own server it’s very likely that you are brave enough to work with subversion copies of blogware.

Note: -> indicates continuation into next line, if you are copying codes from below replace that with a space between text.


Instruction to get subversion copy is here. Basically sudo mkdir wp to make a directory ‘wp’ under the webroot of your server. For LAMP it’ll be /var/www/wp for LEMP it’ll be /var/www/nginx-default/wp typically to place your svn copy of WordPress. Then enter sudo svn co . after cd into that folder. Files will be downloaded to the folder where you typed this line, the last dot at the end of the line tells svn to do so.

Now you need to create a database for WordPress. If you don’t have phpmyadmin installed yet it’s also very simple to use command line to create a new database, follow this. If you prefer phpmyadmin this way please.

First log into mysql command line
$ mysql -u root -p Oops hope that you have written down the root password you entered when installing mysql here. If you are lucky you’ll see the mysql> prompt. If you really have forgotten the password, reset it!

then you type

CREATE DATABASE databasename;


-> TO "root"@"localhost"
-> IDENTIFIED BY "password";
on a single line.


FLUSH PRIVILEGES; then EXIT. Every line mysql will signal you OK, if you don’t get that it’s very likely that you have typed something wrong.

Now your WP installation is at a folder ‘wp’ of your server webroot, you need to tell your server where to load it.

For LEMP you’ll need a vhost file in /etc/nginx/sites-available to do this, say you want a to load your WP installation under folder /wp/. Create a vhost file sub.domain, paste below codes into it.

server {
listen 80;
server_name *;

access_log /var/log/nginx/localhost.access.log;

location / {
root /var/www/nginx-default/wp;
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/nginx-default;

# pass the PHP scripts to FastCGI server
# listening on
location ~ \.php[345]?$ {
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
-> /var/www/nginx-default/wp$fastcgi_script_name;
include /etc/nginx/fastcgi_params;

You also need to symlink this file to /etc/nginx/sites-enabled by

ln -s /etc/nginx/sites-available/sub.domain
-> /etc/nginx/sites-enabled/sub.domain

Stop and start nginx to make changes effective.

If you need to serve more sites, say as subdomain or another domain, you just need to repeat above steps by adding more vhost files to /etc/nginx/sites-available and symlink it to /etc/nginx/sites-enabled. Alternatively you could also use just one file to put settings for all sites.

All set now point your broswer to to run the famous 5 minutes install.

In order to import content from other blogware and make files editable within dashboard you’ll have to grant write permission to files and folders, do this in terminal sudo chmod -R 777 wp-content in the WP installation folder.


Using LAMP as example, create a directory mkdir ha at /var/www/

check out svn version of Habari by

change directory to cd /var/www/ha


sudo svn co .

Read more information about svn check out here.

Create new database by phpmyadmin say of a name ha

Add following lines to /etc/apache2/sites-enabled/000-default

[Directory /var/www/ha/]
Options FollowSymLinks
AllowOverride FileInfo
[/ Directory]

You know you need instead of [] above, don’t forget to restart apache after this

At directory /var/www/ha/chmod 777.

Now you can start installing Habari by pointing browser at

If you are running LEMP you’ll need to read this.

For LAMP this guide will be useful.

Now you have your favorite blogware running you might like to migrate your content into it, before that you need few more steps here


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: