User Tools

Site Tools



Configure Lighttpd

<note>First consider fallowing all the previous steps the WD MyBook World Edition Hacks tutorial</note> <note tip>Please read the official Lighttpd documentation before proceeding. Lighttpd Configuration Options</note>

This chapter is based on Martin Hinner's hack: Using built-in lighttpd to serve webpages

  • Create soft-link in /usr/www/lib
# mkdir /shares/internal/PUBLIC/www/
# ln -s /shares/internal/PUBLIC/www/ /usr/www/lib/
  • Edit /etc/lighttpd/lighttpd.conf
"" => ((  "socket" => "/tmp/lighttpd.fcgi.socket",          
    "check-local" => "disable",
".php" => ((
    "bin-path" => "/usr/local/php5/bin/php-cgi",
    "socket" => "/tmp/php.socket",
  • Restart web server.
# /etc/init.d/lighttpd restart
  • Create index.php file in /shares/internal/PUBLIC/www/ and put this line
<?php phpinfo(); ?>
  • open web browser and navigate to:
devices/mybookworld/lighttpd.txt · Last modified: 2008/04/29 12:05 (external edit)