Installing forum script on D-Link NAS

My workplace needed a simple forum to test out some stuffs and so happened hangyong also needed one. So must as well I document the installation procedure for him as well. Researched abit on available forum scripts (phpbb, smf, etc.) and in the end settled with SMF for its lighter memory footprint.


  • DNS-343 or DNS-323 or DNS-313
  • Running fonz’s fun_plug 0.5
  • Telnet access

Your device should already be running fonz’s fun_plug. If you have yet to do so, fun_plug it! If you are using DNS-343 or DNS-323, follow this guide. If you are using DNS-313, follow this guide instead.

Setting up php for lighttpd

/ # cd /mnt/HD_a2
/mnt/HD_a2 # wget
Connecting to (
php-5.2.6-2.tgz 100% |*******************************| 6414k 00:00:00 ETA
/mnt/HD_a2 # funpkg -i php-5.2.6-2.tgz
Installing package php-5.2.6-2 …
/mnt/HD_a2 # cp /ffp/etc/examples/lighttpd.conf-with-php /ffp/etc/lighttpd.conf
/mnt/HD_a2 # mkdir -p /mnt/HD_a2/www/pages /mnt/HD_a2/www/logs

Setting up database (SQLite)

/mnt/HD_a2 # wget
Connecting to (
sqlite-3.5.6-3.tgz 100% |*******************************| 429k 00:00:00 ETA
/mnt/HD_a2 # funpkg -i sqlite-3.5.6-3.tgz
Installing package sqlite-3.5.6-3 …
/mnt/HD_a2 #

Updating php configuration

You would need to create/edit the file php.ini (/ffp/etc/php.ini) to have the following content


Getting the necessary SMF packages

/ # cd /mnt/HD_a2
/mnt/HD_a2 # wget
Connecting to (
smf_2-0-beta3-1p_ins 100% |*******************************| 1836k –:–:– ETA
/mnt/HD_a2 # mkdir /mnt/HD_a2/www/pages/smf
/mnt/HD_a2 # tar xzvf smf_2-0-beta3-1p_install.tar.gz -C /mnt/HD_a2/www/pages/smf

Starting lighttpd

/mnt/HD_a2 # sh /ffp/start/ start

Installing SMF
Point your web browser to http://<NAS IP>:8080/smf/install.php to continue with the SMF installation!


Treat shadowandy!

If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  

9 thoughts on “Installing forum script on D-Link NAS

  • July 15, 2008 at 8:34 pm

    Will SMF run okay on a DNS-323 as well?

  • July 16, 2008 at 12:10 pm



  • September 23, 2008 at 5:26 pm

    This is great… just what I was looking for… but…

    After following the directions, the SMF Installer gives me the following error message:
    Critical Error!
    The installer was unable to detect any database support in PHP. Please ask your host to ensure that PHP was compiled with the desired database, or that the proper extension is being loaded.

    Sorry for the n00b question, but any help would be much appreciated.

  • September 24, 2008 at 9:28 pm


    Make sure you have enabled the necessary modules in your php.ini.

  • October 28, 2008 at 10:32 pm

    Hi, how i can start lighttpd automatically after restart dns?


  • October 30, 2008 at 2:33 pm


    Just enable the execute bit in the file permission.

    chmod a+x /ffp/start/

  • December 11, 2008 at 5:19 am

    I’ve just registered to say your site is very useful and nicely done!
    Thank you very much for your work.


    Sorry for offtopic.

  • February 1, 2009 at 10:29 pm

    First of all great article.

    Now my problem.

    When I run tar xzvf smf_2-0-beta3-1p_install.tar.gz -C /mnt/HD_a2/www/pages/smf

    I get invalid gzip magic. This is all one line right?

    How do you create a new php.ini?

    Thanks for any info you can provide.



Comments are closed.