Synology usage series 16: Install WordPress on Diskstation

Procedures to support Permalink [for firmware 2.1 or below only]

WordPress is running, but we still need to modify the Apache setting in order to support the different options of Permalink. (According to synology official forum, this will be fixed in the upcoming firmware 2.2, following steps no longer required for fw 2.2)

  1. Telent/SSH to the diskstation as root. Edit httpd.conf-user

    # vi /usr/syno/apache/conf/httpd.conf-user

    LoadModule rewrite_module modules/

    Make sure the lines above were not commented.

    Looks for <Directory “/var/services/web”>, looks for Options MultiViews and add FollowSymLinks at the end of the line. Example below:

    <Directory “/var/services/web”>
    #Options MultiViews
    Options MultiViews FollowSymLinks

  2. Add .htaccess to the wordpress directory

    # vi /volume1/web/wordpress/.htaccess

    Add following lines to the new .htaccess file.

    <IfModule mod_rewrite.c>
    RewriteBase /wordpress/
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]

  3. Restart the apache web server, or simply restart the diskstation

    # /usr/syno/etc/rc.d/ restart

Update: Jan 22, 2010

For firmware 2.2 or above user, a firewall rule is required for external access of the web server.

Network Services > Firewall > Click ‘Create’ button

Ports > Check ‘Select from a list of built-in applications’ radio button > Click ‘Select’ button

Synology: Adding a new predefined firewall rule

Synology: Adding a new predefined firewall rule

To add a predefined web server rule, select port 80 for http, port 443 for https:

Synology: Adding new firewall rule for web server

Synology: Adding new firewall rule for web server

Source IP: ALL (or any other permitted IP address)

DiskStation: Firewall: Assign 'ALL' for source IP

Action : Access : Allow

DiskStation: Firewall: Allow an firewall rule

Other helpful and related links

31 thoughts

  1. Hi,

    I have a DS212J and i have installed WordPress and myphpadmin. I can access it locally from, however I am not able to access it on the internet.

    I scrolled up and read that someone also had this problem. I navigated to General Settings and I see that both the WordPress Address (URL) and Site Address (URL) are

    I do not have a domain name. When I set up DDNS Support (from DS212J’s Control Panel > Network Services > DDNS) I registered it via I can access my diskstation fine from the internet via [my_hostname] Is it possible to do the same and have it point to [my_hostname] I’m guessing no becuase [my_hostname] just points to my IP address. Do I have to purchase a domain to get this working?

    Sorry I’m not very familiar with this stuff.

    • You can have your wordpress being accessed like, as long as

      1. you have setup port forwarding from your broadband router to your Diskstation. (TCP port 80 of course)

      2. generally, most ISP, including the one I’m using, blocking the port 80 to avoid their broadband user hosting website. If your provider did not block the port 80, you are good to go.

      • Thanks ray for your reply.

        My ISP blocked port 80 so I am using 8888 instead. I tried accessing wordpress from my cellphone on T-Mobile’s network and when I type in in the browser, it changes to

        • 1. Purchase a domain would not resolve your problem.
          2. If you are using 8888, then the url of your wordpress would be [my_hostname]

        • 3. You need to change the WordPress Address (URL) and Site Address (URL) from to [my_hostname]

  2. Hallo,
    my english is very bad, sorry.

    I installed wordpress on a nas (synology) and the site is perfectly accessible / visible from the web (via any service DYNDNS).

    The problem, however, are feeds, which appear in the format
    That is, I can not generate a URL accessible FEED / subscribed to the web as any other feeds. You to know, no way?

    Thanks in advance for the answers.

  3. How do you remove the wordpress in your url.
    I have tried to create the v host but when i go to admin pages stuff breaks

    I tried to move the index.php and .htaccess to the root of the web folder but that breaks everything also and makes the DSM manager website show up.

    Thank you for help


Leave a Reply

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