Installing forum script on D-Link NAS (9)


    July 15th, 2008 | Tags: , , , ,

    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!





    9 responses

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

       
    2. m,

      Yes.

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

       
    4. tektor,

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

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

      spycam

       
    6. spycam,

      Just enable the execute bit in the file permission.

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

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

       
    8. 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

       

    RSS Feeds




    Treat shadowandy!


    Like to treat shadowandy a cup of Starbucks?

    Recent Comments



    Friend's Blog



    Interesting Links



    Previous Postings



    Copyright © 2005 - 2010 www.shadowandy.net  111 queries. 1.608 seconds.Go back up ↑