Re: [Cppcms-users] Running cppcms-0.99.5 examples
Brought to you by:
artyom-beilis
|
From: hce <web...@gm...> - 2011-01-07 10:53:13
|
Hi,
I've got the forms and sessions examples work.
What could be wrong in the fastcgi.server configuration which caused
lighttpd error?
2011-01-07 11:44:42: (mod_fastcgi.c.1251) either host/port or socket
have to be set in: fastcgi.server = ( /hello => ( 0 ( ...
2011-01-07 11:44:42: (server.c.908) Configuration of plugins failed. Going down.
fastcgi.server = (
## The script name of the application
"/hello" => ((
## Command line to run
"bin-path" => "/opt/app/bin/hello -c /opt/app/etc/config.js",
"socket" => "127.0.0.1",
"port" => 8081,
# "socket" => "/tmp/hello-fcgi-socket",
## Important - only one process should start
"max-procs" => 1,
"check-local" => "disable"
)))
The config.js is set up:
{
"service" : {
"api" : "fastcgi",
"socket" : "ip" : "127.0.0.1",
"port" : 8081
}
}
Thank you.
Kind regards.
On Fri, Jan 7, 2011 at 9:17 PM, hce <web...@gm...> wrote:
> On Fri, Jan 7, 2011 at 7:08 PM, Artyom <art...@ya...> wrote:
>> How did you build the example?
>> With makefile? What configuration are you using?
>
> I compiled examples from cppcms-0.99.5/examples.
>
>>
>> Note: there are two makefiles and configuration files
>> for dynamic templates loading and for static templates linking.
>>
>
> Actually there is only one Makefile in each example, see following
> Makefile from forms:
>
> LIBS=-lcppcms -lbooster
>
> all: clean hello
>
> hello: hello.cpp view.cpp content.h
> $(CXX) -Wall hello.cpp view.cpp -o hello $(LIBS)
>
> view.cpp: view.tmpl content.h
> cppcms_tmpl_cc view.tmpl -o view.cpp
>
> clean:
> rm -fr *.exe *.so view.cpp cppcms_rundir hello
>
>> Make sure you use right one, I assume you compiled with
>> Makefile.dyn but run with config.js instead of config-dyn.js
>>
>
> There is also only one config.js in each example, please see config.js:
>
> {
> "service" : {
> "api" : "http",
> "port" : 8080
> },
> "http" : {
> "script" : "/hello"
> },
> }
>
> Seems something is not right, did I downloaded wrong version of
> cppcms-0.99.5.tar.bz2?
>
> Thanks.
>
> Kind regards.
>
|