Differences
This shows you the differences between the selected revision and the current version of the page.
howto:simple_fun_plug_stepbystep 2008/04/28 11:48 | howto:simple_fun_plug_stepbystep 2017/09/06 18:38 current | ||
---|---|---|---|
Line 4: | Line 4: | ||
HW: 2 x Samsung 501LJ (500GB) | HW: 2 x Samsung 501LJ (500GB) | ||
+ | |||
===== Preparation ===== | ===== Preparation ===== | ||
* hook up LAN cable to FRITZbox and power DNS323 | * hook up LAN cable to FRITZbox and power DNS323 | ||
- | * open firefox and connect to FRITZbox (in my case via http://192.168.178.1/ and password) | + | * open firefox and connect to FRITZbox (in my case via http://192.168.178.1/ or http://fritz.box and password) |
+ | * if you don't see the web UI you may have the wrong address. If this has been assigned by a router attached to you LAN the easiest way to find this is using the windows only D-Link set-up utility. | ||
in //System-Netwerkgeraete// I see: | in //System-Netwerkgeraete// I see: | ||
Line 18: | Line 20: | ||
* in firefox use http://192.168.178.26 to setup the DNS323 | * in firefox use http://192.168.178.26 to setup the DNS323 | ||
- | ''enter @ login screen: | + | enter @ login screen: |
- | User Name: 'admin' | + | |
- | Password: (blank) | + | User Name: 'admin' |
- | '' | + | Password: (blank) |
- | ''Configuration - Raid 1 (Mirroring) - 498 GB'' | + | |
+ | Configuration - Raid 1 (Mirroring) - 498 GB | ||
formats disks | formats disks | ||
- | * after restart login ('admin') password ('') shows the setup wizard | + | * after restart login ('admin') shows the setup wizard |
- | + | ||
- | ''Tools - Time | + | |
+ | Tools - Time | ||
+ | |||
NTP Server: ntp1.dlink.com | NTP Server: ntp1.dlink.com | ||
- | Time Zone: GNT+1 | + | Time Zone: GMT+1 |
Daylight Saving Time: EU | Daylight Saving Time: EU | ||
- | + | ||
- | Tools - Firmware | + | Tools - Firmware |
+ | |||
Current Firmware Version : 1.03 | Current Firmware Version : 1.03 | ||
Firmware Date : 03/30/2007 | Firmware Date : 03/30/2007 | ||
- | '' | ||
- | mount DNS323 from LINUX machine called VENUS | ||
- | jens@VENUS:~$ ls -latr /mnt | + | |
- | insgesamt 8 | + | ==== mount DNS323 from LINUX machine called VENUS ==== |
- | drwxr-xr-x 2 root root 4096 2006-05-22 16:00 . | + | |
- | drwxr-xr-x 21 root root 4096 2008-04-17 13:02 .. | + | jens@VENUS:~$ ls -latr /mnt |
- | jens@VENUS:~$ sudo mount -t cifs //192.168.178.26/Volume_1 /mnt -o username=admin | + | insgesamt 8 |
- | Password: | + | drwxr-xr-x 2 root root 4096 2006-05-22 16:00 . |
- | jens@VENUS:~$ ls -latr /mnt | + | drwxr-xr-x 21 root root 4096 2008-04-17 13:02 .. |
- | insgesamt 2052 | + | jens@VENUS:~$ sudo mount -t cifs //192.168.178.26/Volume_1 /mnt -o username=admin |
- | drwxr-xr-x 21 root root 4096 2008-04-17 13:02 .. | + | Password: |
- | drwxrwxrwx 1 root root 0 2008-04-25 18:51 .lpd | + | jens@VENUS:~$ ls -latr /mnt |
- | drwxrwxrwx 4 root root 0 2008-04-25 18:51 . | + | insgesamt 2052 |
- | jens@VENUS:~$ | + | drwxr-xr-x 21 root root 4096 2008-04-17 13:02 .. |
+ | drwxrwxrwx 1 root root 0 2008-04-25 18:51 .lpd | ||
+ | drwxrwxrwx 4 root root 0 2008-04-25 18:51 . | ||
+ | jens@VENUS:~$ | ||
You can see above /mnt was empty before mounting and shows now the .lpd directory now. | You can see above /mnt was empty before mounting and shows now the .lpd directory now. | ||
So - it works! | So - it works! | ||
- | install fun_plug 0.4 and addons | + | ===== install fun_plug 0.4 and addons ===== |
- | ------------------------------- | + | |
- | jens@VENUS:/mnt$ ls -latr | + | jens@VENUS:/mnt$ ls -latr |
- | insgesamt 2052 | + | insgesamt 2052 |
- | drwxr-xr-x 21 root root 4096 2008-04-17 13:02 .. | + | drwxr-xr-x 21 root root 4096 2008-04-17 13:02 .. |
- | drwxrwxrwx 1 root root 0 2008-04-25 18:51 .lpd | + | drwxrwxrwx 1 root root 0 2008-04-25 18:51 .lpd |
- | drwxrwxrwx 4 root root 0 2008-04-25 23:53 . | + | drwxrwxrwx 4 root root 0 2008-04-25 23:53 . |
- | jens@VENUS:/mnt$ sudo cp -r /home/jens/Download/DNS323NAS_FunPlug_0_4/* /mnt | + | jens@VENUS:/mnt$ sudo cp -r /home/jens/Download/DNS323NAS_FunPlug_0_4/* /mnt |
- | jens@VENUS:/mnt$ ls | + | jens@VENUS:/mnt$ ls |
- | addon fun_plug fun_plug.d README.txt | + | addon fun_plug fun_plug.d README.txt |
- | jens@VENUS:/mnt$ | + | jens@VENUS:/mnt$ |
- | * in firefox use http://192.168.178.26 to reset DNS323 | + | |
+ | * in firefox use http://192.168.178.26 to reset DNS323 | ||
login as admin | login as admin | ||
Configuration - Tools - System - Restart - Wait ~60s | Configuration - Tools - System - Restart - Wait ~60s | ||
- | * use telnet to see if fun_plug install was successful | + | * use telnet to see if fun_plug install was successful |
- | jens@VENUS:~$ telnet 192.168.178.26 | + | jens@VENUS:~$ telnet 192.168.178.26 |
- | Trying 192.168.178.26... | + | Trying 192.168.178.26... |
- | Connected to 192.168.178.26. | + | Connected to 192.168.178.26. |
- | Escape character is '^]'. | + | Escape character is '^]'. |
- | + | ||
- | + | ||
- | BusyBox v1.8.1 (2007-11-20 23:39:08 CET) built-in shell (ash) | + | BusyBox v1.8.1 (2007-11-20 23:39:08 CET) built-in shell (ash) |
- | Enter 'help' for a list of built-in commands. | + | Enter 'help' for a list of built-in commands. |
- | + | ||
- | / # adduser susie | + | / # exit |
- | Changing password for susie | + | Connection closed by foreign host. |
- | New password: | + | jens@VENUS:~$ |
- | Bad password: too short | + | |
- | Retype password: | + | |
- | Password for susie changed by root | + | |
- | / # more /etc/passwd | + | |
- | root:x:0:0:Linux User,,,:/home/root:/bin/sh | + | |
- | admin:x:500:500:Linux User,,,:/home/admin:/bin/sh | + | |
- | susie:x:1000:1000:Linux User,,,:/home/susie:/mnt/HD_a2/fun_plug.d/bin/sh | + | |
- | / # more /etc/group | + | |
- | root:x:0:root | + | |
- | 500:x:500:admin | + | |
- | 501:x:501:nobody | + | |
- | users:x:502: | + | |
- | admin:x:503: | + | |
- | susie:x:1000: | + | |
- | / # | + | |
- | / # exit | + | |
- | Connection closed by foreign host. | + | |
- | jens@VENUS:~$ | + | |
OK! | OK! | ||
- | Getting the NFS server up and running | + | ===== Getting the NFS server up and running ===== |
- | ------------------------------------- | + | |
using telnet | using telnet | ||
- | / # funpkg.sh /mnt/HD_a2/addon/portmap-6.0.tgz | + | |
- | Unpacking /mnt/HD_a2/addon/portmap-6.0.tgz ... | + | / # funpkg.sh /mnt/HD_a2/addon/portmap-6.0.tgz |
- | Writing package log /mnt/HD_a2/fun_plug.d/packages/portmap-6.0 ... | + | Unpacking /mnt/HD_a2/addon/portmap-6.0.tgz ... |
- | Installing files to /mnt/HD_a2/fun_plug.d ... | + | Writing package log /mnt/HD_a2/fun_plug.d/packages/portmap-6.0 ... |
- | Cleaning up | + | Installing files to /mnt/HD_a2/fun_plug.d ... |
- | / # funpkg.sh /mnt/HD_a2/addon/unfs3-0.9.18.tgz | + | Cleaning up |
- | Unpacking /mnt/HD_a2/addon/unfs3-0.9.18.tgz ... | + | / # funpkg.sh /mnt/HD_a2/addon/unfs3-0.9.18.tgz |
- | Writing package log /mnt/HD_a2/fun_plug.d/packages/unfs3-0.9.18 ... | + | Unpacking /mnt/HD_a2/addon/unfs3-0.9.18.tgz ... |
- | Installing files to /mnt/HD_a2/fun_plug.d ... | + | Writing package log /mnt/HD_a2/fun_plug.d/packages/unfs3-0.9.18 ... |
- | Cleaning up | + | Installing files to /mnt/HD_a2/fun_plug.d ... |
- | / # chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh | + | Cleaning up |
- | / # sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start | + | / # chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh |
- | Starting rpc.portmap... | + | / # sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start |
- | Creating default exports file... | + | Starting rpc.portmap... |
- | / 192.168.178.0/24(rw,no_root_squash) | + | Creating default exports file... |
- | /mnt/HD_a2 192.168.178.0/24(rw,no_root_squash) | + | / 192.168.178.0/24(rw,no_root_squash) |
- | Starting unfsd... | + | /mnt/HD_a2 192.168.178.0/24(rw,no_root_squash) |
+ | Starting unfsd... | ||
on LINUX client | on LINUX client | ||
- | jens@VENUS:/etc$ cd /media | + | jens@VENUS:/etc$ cd /media |
- | jens@VENUS:/media$ sudo mkdir meinefreigabe | + | jens@VENUS:/media$ sudo mkdir meinefreigabe |
- | jens@VENUS:/media$ sudo mount 192.168.178.26:/ /media/meinefreigabe | + | jens@VENUS:/media$ sudo mount 192.168.178.26:/ /media/meinefreigabe |
- | jens@VENUS:/media$ ls | + | jens@VENUS:/media$ ls |
- | cardreader cdrom0 hda2 hda5 meinefreigabe sda2 | + | cardreader cdrom0 hda2 hda5 meinefreigabe sda2 |
- | cdrom hda1 hda3 hda6 sda sdb2 | + | cdrom hda1 hda3 hda6 sda sdb2 |
- | jens@VENUS:/media$ cd meinefreigabe/ | + | jens@VENUS:/media$ cd meinefreigabe/ |
- | jens@VENUS:/media/meinefreigabe$ ls | + | jens@VENUS:/media/meinefreigabe$ ls |
- | bin etc lib proc sys var | + | bin etc lib proc sys var |
- | default home lost+found root tmp web | + | default home lost+found root tmp web |
- | dev image.cfs mnt sbin usr welcome.msg | + | dev image.cfs mnt sbin usr welcome.msg |
- | jens@VENUS:/media/meinefreigabe$ | + | jens@VENUS:/media/meinefreigabe$ |
as shown above it is now possible to see the files on DNS323 | as shown above it is now possible to see the files on DNS323 | ||
Line 151: | Line 137: | ||
- | install addon dropbear for ssh support | + | ===== install addon dropbear for ssh support ===== |
- | -------------------------------------- | + | |
- | + | ||
- | jens@VENUS:/mnt$ telnet 192.168.178.26 | + | |
- | Trying 192.168.178.26... | + | |
- | Connected to 192.168.178.26. | + | |
- | Escape character is '^]'. | + | |
- | + | ||
- | + | ||
- | BusyBox v1.8.1 (2007-11-20 23:39:08 CET) built-in shell (ash) | + | |
- | Enter 'help' for a list of built-in commands. | + | |
- | + | ||
- | / # funpkg.sh /mnt/HD_a2/addon/dropbear-0.50.tgz | + | |
- | Unpacking /mnt/HD_a2/addon/dropbear-0.50.tgz ... | + | |
- | Writing package log /mnt/HD_a2/fun_plug.d/packages/dropbear-0.50 ... | + | |
- | Installing files to /mnt/HD_a2/fun_plug.d ... | + | |
- | Cleaning up | + | |
- | / # which dropbear | + | |
- | /mnt/HD_a2/fun_plug.d/bin/dropbear | + | |
- | / # cd /mnt/HD_a2/fun_plug.d/start | + | |
- | /mnt/HD_a2/fun_plug.d/start # sh dropbear.sh start | + | |
- | Generating DSA host key... | + | |
- | Will output 1024 bit dss secret key to '/mnt/HD_a2/fun_plug.d/etc/dropbear/dropbear_dsa_host_key' | + | |
- | Generating key, this may take a while... | + | |
- | Public key portion is: | + | |
- | ssh-dss ... | + | |
- | Starting dropbear ... | + | |
- | /mnt/HD_a2/fun_plug.d/start # | + | |
+ | jens@VENUS:/mnt$ telnet 192.168.178.26 | ||
+ | Trying 192.168.178.26... | ||
+ | Connected to 192.168.178.26. | ||
+ | Escape character is '^]'. | ||
+ | |||
+ | |||
+ | BusyBox v1.8.1 (2007-11-20 23:39:08 CET) built-in shell (ash) | ||
+ | Enter 'help' for a list of built-in commands. | ||
+ | |||
+ | / # funpkg.sh /mnt/HD_a2/addon/dropbear-0.50.tgz | ||
+ | Unpacking /mnt/HD_a2/addon/dropbear-0.50.tgz ... | ||
+ | Writing package log /mnt/HD_a2/fun_plug.d/packages/dropbear-0.50 ... | ||
+ | Installing files to /mnt/HD_a2/fun_plug.d ... | ||
+ | Cleaning up | ||
+ | / # which dropbear | ||
+ | /mnt/HD_a2/fun_plug.d/bin/dropbear | ||
+ | / # cd /mnt/HD_a2/fun_plug.d/start | ||
+ | /mnt/HD_a2/fun_plug.d/start # sh dropbear.sh start | ||
+ | Generating DSA host key... | ||
+ | Will output 1024 bit dss secret key to '/mnt/HD_a2/fun_plug.d/etc/dropbear/dropbear_dsa_host_key' | ||
+ | Generating key, this may take a while... | ||
+ | Public key portion is: | ||
+ | ssh-dss ... | ||
+ | Starting dropbear ... | ||
+ | /mnt/HD_a2/fun_plug.d/start # | ||
+ | |||
- | jens@VENUS:/etc$ ssh -l susie 192.168.178.26 | + | on VENUS |
- | susie@192.168.178.26's password: | + | |
+ | jens@VENUS:/etc$ ssh -l admin 192.168.178.26 | ||
+ | admin@192.168.178.26's password: | ||
+ | |||
+ | |||
+ | BusyBox v1.8.1 (2007-11-20 23:39:08 CET) built-in shell (ash) | ||
+ | Enter 'help' for a list of built-in commands. | ||
+ | |||
+ | ~ $ exit | ||
+ | Connection to 192.168.178.26 closed. | ||
+ | jens@VENUS:/etc$ | ||
- | BusyBox v1.8.1 (2007-11-20 23:39:08 CET) built-in shell (ash) | ||
- | Enter 'help' for a list of built-in commands. | ||
- | ~ $ exit | + | ===== lighttpd web server install ===== |
- | Connection to 192.168.178.26 closed. | + | |
- | jens@VENUS:/etc$ | + | |
+ | on DNS323 | ||
- | lighttpd web server install | + | mkdir /mnt/HD_a2/www |
- | --------------------------- | + | mkdir /mnt/HD_a2/www/logs |
- | + | ||
- | mkdir /mnt/HD_a2/www | + | vi /mnt/HD_a2/www/index.html |
- | mkdir /mnt/HD_a2/www/logs | + | <html> |
- | + | <body> | |
- | vi /mnt/HD_a2/www/index.html | + | Hello World from DNS-323 |
- | <html> | + | </body> |
- | <body> | + | </html> |
- | Hello World from DNS-323 | + | |
- | </body> | + | funpkg.sh /mnt/HD_a2/addon/lighttpd-1.4.18.tgz |
- | </html> | + | |
- | + | cd /mnt/HD_a2/fun_plug.d/etc | |
- | funpkg.sh /mnt/HD_a2/addon/lighttpd-1.4.18.tgz | + | |
- | + | cp /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf-sample /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf | |
- | cd /mnt/HD_a2/fun_plug.d/etc | + | |
- | + | vi /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf | |
- | cp /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf-sample /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf | + | |
- | + | server.document-root = "/mnt/HD_a2/www/" | |
- | vi /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf | + | server.port = 3000 |
- | + | ||
- | server.document-root = "/mnt/HD_a2/www/" | + | |
- | server.port = 3000 | + | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh start |
- | + | ||
- | + | ||
- | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh start | + | |
to verify status (running is what we expect): | to verify status (running is what we expect): | ||
- | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh status | + | ''/mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh status'' |
if /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf was changed | if /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf was changed | ||
- | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh restart | + | ''/mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh restart'' |
for debug (simulates start with error output): | for debug (simulates start with error output): | ||
- | /mnt/HD_a2/fun_plug.d/etc # ${SBINDIR}/lighttpd -f ${ETCDIR}/lighttpd.conf | + | ''/mnt/HD_a2/fun_plug.d/etc # ${SBINDIR}/lighttpd -f ${ETCDIR}/lighttpd.conf |
+ | '' | ||
in firefox: http://192.168.178.26:3000/ | in firefox: http://192.168.178.26:3000/ | ||
works OK! | works OK! | ||
- | add php support to lighttpd | + | ===== add php support to lighttpd ===== |
- | --------------------------- | + | |
- | jens@VENUS:/mnt$ sudo cp /home/jens/Download/DNS323NAS_FunPlug_0_3/php-5.2.4.tgz /media/meinefreigabe/mnt/HD_a2/addon | + | on VENUS |
- | /mnt/HD_a2/www # funpkg.sh /mnt/HD_a2/addon/php-5.2.4.tgz | + | jens@VENUS:/mnt$ sudo cp /home/jens/Download/DNS323NAS_FunPlug_0_3/php-5.2.4.tgz /media/meinefreigabe/mnt/HD_a2/addon |
- | Unpacking /mnt/HD_a2/addon/php-5.2.4.tgz ... | + | |
- | Writing package log /mnt/HD_a2/fun_plug.d/packages/php-5.2.4 ... | + | |
- | Installing files to /mnt/HD_a2/fun_plug.d ... | + | |
- | Cleaning up | + | |
- | /mnt/HD_a2/www # | + | |
- | make sure that you can run "php -v" and "php-cgi -v" | + | on DNS323 |
- | /mnt/HD_a2/www # which php | + | /mnt/HD_a2/www # funpkg.sh /mnt/HD_a2/addon/php-5.2.4.tgz |
- | /mnt/HD_a2/fun_plug.d/bin/php | + | Unpacking /mnt/HD_a2/addon/php-5.2.4.tgz ... |
- | /mnt/HD_a2/www # php -v | + | Writing package log /mnt/HD_a2/fun_plug.d/packages/php-5.2.4 ... |
- | PHP 5.2.4 (cli) (built: Sep 5 2007 21:33:10) | + | Installing files to /mnt/HD_a2/fun_plug.d ... |
- | Copyright (c) 1997-2007 The PHP Group | + | Cleaning up |
- | Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies | + | /mnt/HD_a2/www # |
- | /mnt/HD_a2/www # php-cgi -v | + | |
- | PHP 5.2.4 (cgi-fcgi) (built: Sep 5 2007 21:33:09) | + | |
- | Copyright (c) 1997-2007 The PHP Group | + | |
- | Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies | + | |
- | /mnt/HD_a2/www # | + | |
- | /mnt/HD_a2/fun_plug.d/etc # vi lighttpd.conf | + | make sure that you can run "php -v" and "php-cgi -v" |
- | /mnt/HD_a2/fun_plug.d/etc # diff lighttpd.conf lighttpd.conf-sample | + | /mnt/HD_a2/www # which php |
- | --- lighttpd.conf Sat Apr 26 16:38:25 2008 | + | /mnt/HD_a2/fun_plug.d/bin/php |
- | +++ lighttpd.conf-sample Tue Nov 20 23:43:53 2007 | + | /mnt/HD_a2/www # php -v |
- | @@ -21,7 +21,7 @@ | + | PHP 5.2.4 (cli) (built: Sep 5 2007 21:33:10) |
- | # "mod_auth", | + | Copyright (c) 1997-2007 The PHP Group |
- | # "mod_status", | + | Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies |
- | # "mod_setenv", | + | /mnt/HD_a2/www # php-cgi -v |
- | - "mod_fastcgi", | + | PHP 5.2.4 (cgi-fcgi) (built: Sep 5 2007 21:33:09) |
- | +# "mod_fastcgi", | + | Copyright (c) 1997-2007 The PHP Group |
- | # "mod_proxy", | + | Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies |
- | # "mod_simple_vhost", | + | /mnt/HD_a2/www # |
- | # "mod_evhost", | + | |
- | @@ -37,7 +37,7 @@ | + | |
- | ## a static document-root, for virtual-hosting take look at the | + | adjust configuraton |
- | ## server.virtual-* options | + | |
- | -server.document-root = "/mnt/HD_a2/www/" | + | |
- | +server.document-root = "/mnt/HD_a2/www/pages/" | + | |
- | server.upload-dirs = ( "/mnt/HD_a2/tmp" ) | + | /mnt/HD_a2/fun_plug.d/etc # vi lighttpd.conf |
- | + | /mnt/HD_a2/fun_plug.d/etc # diff lighttpd.conf lighttpd.conf-sample | |
- | @@ -50,11 +50,11 @@ | + | --- lighttpd.conf Sat Apr 26 16:38:25 2008 |
- | + | +++ lighttpd.conf-sample Tue Nov 20 23:43:53 2007 | |
- | ## php support | + | @@ -21,7 +21,7 @@ |
- | ## uncomment the following lines and the mod_fastcgi module above | + | # "mod_auth", |
- | -fastcgi.server = ( ".php" => (( | + | # "mod_status", |
- | - "bin-path" => "/mnt/HD_a2/fun_plug.d/bin/php-cgi", | + | # "mod_setenv", |
- | - "socket" => "/tmp/php-cgi.socket", | + | - "mod_fastcgi", |
- | - "max-procs" => 2 | + | +# "mod_fastcgi", |
- | -))) | + | # "mod_proxy", |
- | +#fastcgi.server = ( ".php" => (( | + | # "mod_simple_vhost", |
- | +# "bin-path" => "/mnt/HD_a2/fun_plug.d/bin/php-cgi", | + | # "mod_evhost", |
- | +# "socket" => "/tmp/php-cgi.socket", | + | @@ -37,7 +37,7 @@ |
- | +# "max-procs" => 2 | + | |
- | +#))) | + | ## a static document-root, for virtual-hosting take look at the |
- | + | ## server.virtual-* options | |
- | + | -server.document-root = "/mnt/HD_a2/www/" | |
- | ## set the event-handler (read the performance section in the manual) | + | +server.document-root = "/mnt/HD_a2/www/pages/" |
- | @@ -146,7 +146,7 @@ | + | |
- | ######### Options that are good to be but not neccesary to be changed ####### | + | server.upload-dirs = ( "/mnt/HD_a2/tmp" ) |
- | + | ||
- | ## bind to port (default: 80) | + | @@ -50,11 +50,11 @@ |
- | -server.port = 3000 | + | |
- | +server.port = 8080 | + | ## php support |
- | + | ## uncomment the following lines and the mod_fastcgi module above | |
- | ## bind to localhost (default: all interfaces) | + | -fastcgi.server = ( ".php" => (( |
- | #server.bind = "grisu.home.kneschke.de" | + | - "bin-path" => "/mnt/HD_a2/fun_plug.d/bin/php-cgi", |
- | @@ -184,10 +184,10 @@ | + | - "socket" => "/tmp/php-cgi.socket", |
- | dir-listing.show-readme = "enable" | + | - "max-procs" => 2 |
+ | -))) | ||
+ | +#fastcgi.server = ( ".php" => (( | ||
+ | +# "bin-path" => "/mnt/HD_a2/fun_plug.d/bin/php-cgi", | ||
+ | +# "socket" => "/tmp/php-cgi.socket", | ||
+ | +# "max-procs" => 2 | ||
+ | +#))) | ||
+ | |||
+ | |||
+ | ## set the event-handler (read the performance section in the manual) | ||
+ | @@ -146,7 +146,7 @@ | ||
+ | ######### Options that are good to be but not neccesary to be changed ####### | ||
+ | |||
+ | ## bind to port (default: 80) | ||
+ | -server.port = 3000 | ||
+ | +server.port = 8080 | ||
+ | |||
+ | ## bind to localhost (default: all interfaces) | ||
+ | #server.bind = "grisu.home.kneschke.de" | ||
+ | @@ -184,10 +184,10 @@ | ||
+ | dir-listing.show-readme = "enable" | ||
+ | |||
+ | ## enable debugging | ||
+ | -debug.log-request-header = "enable" | ||
+ | -debug.log-response-header = "enable" | ||
+ | -debug.log-request-handling = "enable" | ||
+ | -debug.log-file-not-found = "enable" | ||
+ | +#debug.log-request-header = "enable" | ||
+ | +#debug.log-response-header = "enable" | ||
+ | +#debug.log-request-handling = "enable" | ||
+ | +#debug.log-file-not-found = "enable" | ||
+ | |||
+ | ### only root can use these options | ||
+ | # | ||
+ | /mnt/HD_a2/fun_plug.d/etc # | ||
- | ## enable debugging | ||
- | -debug.log-request-header = "enable" | ||
- | -debug.log-response-header = "enable" | ||
- | -debug.log-request-handling = "enable" | ||
- | -debug.log-file-not-found = "enable" | ||
- | +#debug.log-request-header = "enable" | ||
- | +#debug.log-response-header = "enable" | ||
- | +#debug.log-request-handling = "enable" | ||
- | +#debug.log-file-not-found = "enable" | ||
- | ### only root can use these options | + | restart lighttpd |
- | # | + | |
- | /mnt/HD_a2/fun_plug.d/etc # | + | |
+ | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh restart | ||
+ | Starting lighttpd... | ||
+ | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh status | ||
+ | running | ||
+ | /mnt/HD_a2/fun_plug.d/etc # | ||
- | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh restart | + | running is good.\\ |
- | Starting lighttpd... | + | Create a simple php |
- | /mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/lighttpd.sh status | + | |
- | running | + | |
- | /mnt/HD_a2/fun_plug.d/etc # | + | |
- | /mnt/HD_a2/www # more hello.php | + | /mnt/HD_a2/www # more hello.php |
- | <html> | + | <html> |
- | <head> | + | <head> |
- | <title>PHP-Test</title> | + | <title>PHP-Test</title> |
- | </head> | + | </head> |
- | <body> | + | <body> |
- | <?php echo '<p>Hallo Welt</p>'; ?> | + | <?php echo '<p>Hallo Welt</p>'; ?> |
- | </body> | + | </body> |
- | </html> | + | </html> |
- | /mnt/HD_a2/www # | + | /mnt/HD_a2/www # |
in firefox: http://192.168.178.26:3000/hello.php | in firefox: http://192.168.178.26:3000/hello.php | ||
- | /mnt/HD_a2/www # vi info.php | + | /mnt/HD_a2/www # vi info.php |
- | /mnt/HD_a2/www # more info.php | + | /mnt/HD_a2/www # more info.php |
- | <?PHP | + | <?PHP |
- | phpinfo (); | + | phpinfo (); |
- | ?> | + | ?> |
- | /mnt/HD_a2/www # | + | /mnt/HD_a2/www # |
in firefox: http://192.168.178.26:3000/info.php | in firefox: http://192.168.178.26:3000/info.php | ||
OK - works! | OK - works! |