Thursday, December 11, 2008

Webserver installation - lighttpd

If you want to use your slug as a webserver with php support you should follow the steps through and you will have a webserve with php support.
first write
#touch /.ext3flash
to prevent your flash disk drive wear out.Then update the package list using
#apt-get update
After these install the required packages using
#apt-get install lighttpd
#apt-get install php5-cgi
#apt-get install php5-gd
After the install, open lighttpd.conf:
#nano /etc/lighttpd/lighttpd.conf
Add the code below under server.modules, like this:
at the end of the file add
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket",
After adding the code, save and exit.
try the server if it is working or not. Create info.php at /var/www/info.php
touch /var/www/info.php
edit this file
nano /var/www/info.php
save and exit.Restart the server
/etc/init.d/lighttpd restart
Type your address and try
I hope you can see something and the guide worked for you.See you in the next guide


  1. Thanks for the guide, it works great. Just wanted to let you know you're missing a "<" at the beginning of the content of info.php. It can make a difference for those juste copy-pasting without paying much attention (like me!).

  2. I am happy that it worked for you. I am aware of it but blogger does not let me to add that character. When I put it it recognizes it as a script I guess. Any advice would be appreciated.