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.

Prerequisites

  • 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 http://www.inreto.de/dns323/fun-plug/0.5/packages/php-5.2.6-2.tgz
Connecting to www.inreto.de (217.119.59.48:80)
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 http://www.inreto.de/dns323/fun-plug/0.5/packages/sqlite-3.5.6-3.tgz
Connecting to www.inreto.de (217.119.59.48:80)
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

[PHP]
extension=pdo.so
extension=sqlite.so

Getting the necessary SMF packages

/ # cd /mnt/HD_a2
/mnt/HD_a2 # wget http://www.simplemachines.org/download/index.php/smf_2-0-beta3-1p_install.tar.gz
Connecting to www.simplemachines.org (207.210.95.108:80)
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/lighttpd.sh 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
    Permalink

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

  • July 16, 2008 at 12:10 pm
    Permalink

    m,

    Yes.

  • September 23, 2008 at 5:26 pm
    Permalink

    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.
    Thanks!

  • September 24, 2008 at 9:28 pm
    Permalink

    tektor,

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

  • October 28, 2008 at 10:32 pm
    Permalink

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

    spycam

  • October 30, 2008 at 2:33 pm
    Permalink

    spycam,

    Just enable the execute bit in the file permission.

    chmod a+x /ffp/start/lighttpd.sh

  • December 11, 2008 at 5:19 am
    Permalink

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

    Cheers!

    Sorry for offtopic.

  • February 1, 2009 at 10:29 pm
    Permalink

    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.

    Thanks

    Luis

Comments are closed.