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 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}$ ";;
  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 🙂

Dec 01 2011

Howto: Installing WordPress on Synology DS211j

Before reading: If you don’t know what a NAS is and what can you do with it, the guys at Cloudwards have written a nice introduction: What is a NAS? A Practical Guide.

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.

Nov 30 2011

Howto: Web Pages on Synology DS211j

It is possible to enable personal web pages for all users that you have in Synoogy DS211j. This means that every user may have their own web pages served from their home directory. To enable this “User Home” feature, follow these steps:

  1. Login to DS211j using the admin account.
  2. Select “Control Panel” → “User” → “User Home”.
  3. Tick “Enable user home service”. Just ignore the Volume setting.
  4. “Control Panel” → “Web Services” → “Web Applications” → tick “Enable personal website”.
  5. Logout.
Physically the web pages are located in:

And they can be accessed via:


You may mount the directory onto your computer to easily edit the files.

That’s it!