lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jul 22, 2008 at 1:46 PM, Pete Kay <petedao@gmail.com> wrote:
> Hi,
>
> I am trying to get lighttpd to run lua script.
>
> I added the following to the lighttpd.conf, but lighttpd would start unless
> I command out the server.modules line.
>
> server.modules = ( "mod_fastcgi" )
>
> fastcgi.server = ( ".lua" =>
>                    ( "kepler" =>
>                      ( "socket" => "/tmp/kepler-fastcgi.socket",
>                        "bin-path" => "/usr/local/bin/cgi-fcgi"
>                      )
>                    )
>                   )
>
>
> ser:/usr/src/lighttpd-1.4.19# lighttpd -D -f ./doc/lighttpd.conf
> Duplicate config variable in conditional 0 global: server.modules
> 2008-07-23 03:50:24: (configfile.c.855) source: ./doc/lighttpd.conf line:
> 227 pos: 15 parser failed somehow near here: (EOL)
>
>
> What is wrong with this config?
>
> If I remove the server.modules line, lighttpd can start but when I go to
> http://127.0.0.1/test.lua, the lua script can't run.
>
> What could be the problem in my setup?
>
> Thanks in advance for all your help.
>
> Pete
>

You need server.modules += or just uncomment the fastcgi line in the
server.modules above...

-- 
Anders