Configure Lighttpd

First consider fallowing all the previous steps the WD MyBook World Edition Hacks tutorial

Please read the official Lighttpd documentation before proceeding. Lighttpd Configuration Options

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 11:05 (external edit)
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki