Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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...

share|improve this question
    
Since it's something related to the confif file we should read the file content –  David Costa Mar 24 '11 at 8:10
    
Please check this out : paste.lighttpd.net/1559 –  Alzea Arafat Mar 24 '11 at 9:41
    
Lines from 216 to 222 should be uncommented, wipe away the starting pund sign. –  David Costa Mar 24 '11 at 9:49
    
Still not working... [root@fedora lighttpd]# /etc/init.d/lighttpd start Starting lighttpd: 2011-03-24 16:55:29: (configfile.c.848) source: find /etc/lighttpd/lighttpd.conf line: 1 pos: 1 invalid character in variable name 2011-03-24 16:55:29: (configfile.c.904) configfile parser failed at: 2011-03-24 16:55:29: (configfile.c.907) source: /etc/lighttpd/lighttpd.conf line: 328 pos: 1 parser failed somehow near here: (EOL) [FAILED] –  Alzea Arafat Mar 24 '11 at 9:55
    
change the last line from –  David Costa Mar 24 '11 at 10:07

1 Answer 1

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

share|improve this answer
    
I'd accept this answer. :) –  egorgry Mar 24 '11 at 15:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.