Need help, failed to start Lighttpd

lighttpd

I following this tutorial corectly : http://howtoforge.com/installing-lighttpd-with-php5-and-mysql-support-on-fedora-14

But now i got this error :

    [root@fedora lighttpd]# /etc/init.d/lighttpd start
Starting lighttpd: 2011-03-24 00:06:03: (configfile.c.907) source: /etc/lighttpd/lighttpd.conf line: 326 pos: 92 parser failed somehow near here: include_shell 
                                                           [FAILED]

How i can fix this? thanks…

Best Answer

In order to make lighty work, starting from this file: http://paste.lighttpd.net/1559 You have to:

Configuration syntax corrections:

  1. Uncomment the PHP-fastcgi section so that it opens and close the right number of parenthesis.
  2. Comment the last line which doesn't return valid configuration data + it's a nonsense (to me)

Configure the service to start:

  1. On fedora core use its tools to STOP every other service that uses the port 80 tcp (i.e. Apache)
  2. Using these tools configure lighttpd as a service to be run on the default runlevel.

A brief explanation about the fedora core service configuration tools can be found here: http://www.fedorafaq.org/basics/#services