Setting up lighttpd 1.4.17 with ImageMagick
How many of you are simply using DNS-323 as a Network Attached Storage? Probably you are missing out on Peer-to-Peer applications like MLDonkey.
How about setting up a web server on the DNS-323 so that you can share your files with your friends, or perhaps host a image gallery on it to share your memories with your loved ones?
This writeup will guide you through the process of setting up lighttpd 1.4.14 with ImageMagick (completed with libpng, libjpeg) so that you can do some manipulation with images. But do take note image manipulation could take some time on the DNS-323.
So let begin by getting the required files.
Required files
- funplug-0.3.tar.gz
- lighttpd-1.4.17.tgz
- php-5.2.4.tgz
- imagemagick-6.3.4_9.tgz
- libjpeg-6b.tgz
- libpng-1.2.18.tgz
These files can be downloaded from fonz’s website.
Download all the files to Volume_1 of your DNS-323.
If you have already set up fun_plug (at least version 0.3) by fonz, then you can skip to Upgrading the lighttpd.
Setting up fonz’s fun_plug
- Extract the contents of funplug-0.3.tar.gz by winrar or other tools
- Place the contents on \\<DNS-323’s IP>\Volume_1\. So you would have \\<DNS-323’s IP>\Volume_1\fun_plug and \\<DNS-323’s IP>\Volume_1\fun_plug.tar
- Restart your DNS-323
- Wait for 60 seconds before proceeding to the next section
Upgrading the lighttpd
Telnet into your DNS323 by using a suitable client (e.g. putty). Execute the following commands.
/ # cd /mnt/HD_a2
/mnt/HD_a2 # funpkg.sh lighttpd-1.4.17.tgz
Unpacking lighttpd-1.4.17.tgz …
Installing files to /mnt/HD_a2/fun_plug.d …
Cleaning up
/mnt/HD_a2 #
Installing PHP 5.2.4
/mnt/HD_a2 # funpkg.sh php-5.2.4.tgz
Unpacking php-5.2.4.tgz …
Installing files to /mnt/HD_a2/fun_plug.d …
Cleaning up
/mnt/HD_a2 #
Configuring lighttpd
/mnt/HD_a2 # cp fun_plug.d/etc/lighttpd.conf-with-php-sample fun_plug.d/etc/lighttpd.conf
/mnt/HD_a2 # chmod +x funplug.d/start/lighttpd.sh
Installing ImageMagick, libpng, libjpeg
/mnt/HD_a2 # funpkg.sh imagemagick-6.3.4_9.tgz
Unpacking imagemagick-6.3.4_9.tgz …
Installing files to /mnt/HD_a2/fun_plug.d …
Cleaning up
/mnt/HD_a2 # funpkg.sh libpng-1.2.18.tgz
Unpacking libpng-1.2.18.tgz …
Installing files to /mnt/HD_a2/fun_plug.d …
Cleaning up
/mnt/HD_a2 # funpkg.sh libjpeg-6b.tgz
Unpacking libjpeg-6b.tgz …
Installing files to /mnt/HD_a2/fun_plug.d …
Cleaning up
/mnt/HD_a2 #
Setting up the necessary folders
/mnt/HD_a2 # mkdir -p www/pages
/mnt/HD_a2 # mkdir -p www/logs
/mnt/HD_a2 # chmod 0777 www/pages
Running lighttpd for the first time
/mnt/HD_a2 # ./fun_plug.d/start/lighttpd.sh
Point your web browser to the following address http://<DNS-323’s IP>:8080. If your lighttpd installation is successful, you should see the following page.
phpinfo() page
Place your webpages in /mnt/HD_a2/www/pages and you would be able to view them through lighttpd. The lighttpd will autostart everytime the DNS-323 is rebooted.
Have fun!