Oct 16 2012

Howto: Virtual Hosts in Synology DS211j (Apache)

Sometimes, when developing for a web site for instance, you may need to get the site running in a virtual host in Apache, in order to test how it functions in a production environment. If you don’t use the virtual host technique, you need to manually insert paths in order to get for example CSS styles working properly. That is because in a production environment it is common that the references paths start from the domain and not having a directory in the beginning. Follow these steps to enable virtual hosts in Synology DS211j. Continue reading


Oct 08 2012

Howto: Updating WPML From Free to Commercial

I tried to manage with WPML 2.0.4.1 – the last free version of WPML. It works great with WordPress up to version 3.2.1. However, I soon discovered that I need to update my WordPress because of some security fixes introduced in the newer versions. This also meant that I needed to buy the commercial version of the great plugin.

Continue reading


Oct 05 2012

Howto: Restart Apache on Synology DS211j

This one is easy if you know where the script is located. Login as root and execute:
/usr/syno/etc.defaults/rc.d/S97apache-user.sh restart

That’s it, enjoy!


Sep 23 2012

Howto: Working Directory in Synology DS211j Shell Prompt

Synology DS211j has ash as the default shell. It has some basic features, such as tab-complete. However one of the features in other shells (such as bash) is missing: dynamic display of working directory in shell prompt. The default prompt is noninformative “DiskStation>“. Fortunately it is easy to change it to display current working directory. Here’s how:

  1. In your home directory: vi .profile
  2. vi editor is not very intuitive so you first need to enter “edit mode” by pressing “i” (insert).
  3. Comment out the line: PS1=”`hostname`> “ by adding a dash (#) in the beginning of the line
  4. Then copy-paste the following lines below it:
    PS1="`whoami`@`hostname | sed 's/\..*//'`:\w"
    case `id -u` in
    0) PS1="${PS1}# ";;
    *) PS1="${PS1}$ ";;
    esac
  5. Exit edit mode by pressing Esc.
  6. Save and exit the editor by typing :wq and hitting Enter.
  7. Log out and log in again and there you have it!

Enjoy 🙂


Feb 24 2012

Howto: WordPress reCaptcha Plugin Localization

The Background

CAPTCHA is a technique where an input (a.k.a. web form) is protected by a picture challenge to prevent bots from writing spam messages to forums, blogs, etc. Google digitizes books and old newspapers using scanners and OCR software to convert the images into text. Sometimes the software cannot interpret the word correctly due to a typo, bad quality in the printing, etc.

Continue reading


Jan 31 2012

Howto: Transfer Data Between WordPress Blogs (Export/Import)

When I started my blog, I first tried all kinds of things locally as I had WordPress installed on my Synology DS211j. It served as a sandbox where I could experiment without being afraid of breaking something in production. When I had tweaked my WordPress installation to my needs I installed it on the actual server where it would reside. As I experimented, I wrote blog posts about the things that I found out. Now I needed to transfer the blog posts (as well as other meta data) from the old WordPress to the new one.  There are many options to do this, I introduce two here. Continue reading


Jan 30 2012

Howto: Installing a WordPress Theme

Installing a WordPress theme is really simple:

  1. Download the compressed theme package (usually *.zip).
  2. Decompress it (normally unzip).
  3. Upload the directory and its contents to [your-blog-root]\wp-content\themes using FTP or any other method.
  4. Enable the new theme: Appearance → Themes → Activate your theme.
You may now adjust the widgets, menus or other options for your newly installed theme from the same menu.

Dec 05 2011

Howto: Multilingual WordPress

Installation of WPML

After having tried several different multilingual plugins, I found out that two of the best plugins were qTranslate and WPML. I wasn’ t quite satisfied with qTranslate so I decided to try WPML. However, WPML has gone commercial so it is difficult to find an older version that is still free. The latest free version is 2.0.4.1 and all releases after that are commercial. Continue reading


Dec 01 2011

Howto: Installing WordPress on Synology DS211j

With the DiskStation Manager (DSM) software v. 3.2 upwards it is possible to install WordPress using the Admin account’s Package Center. It will, however, install only one “master” instance of WordPress. Luckily installing WordPress blog engine for different users on Synology DS211j NAS station is pretty straight forward. Continue reading


Dec 01 2011

Howto: Installing phpMyAdmin on Synology DS211j

With the DiskStation Manager (DSM) software v. 3.2 upwards it is possible to install certain software using the Admin account’s Package Center. It is fast and convenient. If you are running an older version of DSM or for some reason want to install phpMyAdmin manually, this is how to do it.

  1. Login as admin.
  2. Select “Control Panel” → “Web Services” → “Web applications” → tick to enable “Web Station” & “MySQL”.
  3. Download the latest ZIP archive from the phpMyAdmin site.
  4. Unzip it to /web/phpMyAdmin using the the Synology Web UI File Browser.
  5. Access phpMyAdmin using the URL http://[your-nas-address]/phpMyAdmin/.
  6. By default, it does not require any password so make sure you will enable authentication for the root account and create additional accounts if necessary.