Thread: [Cppcms-users] Running cppcms-0.99.5 examples
Brought to you by:
artyom-beilis
From: hce <web...@gm...> - 2011-01-07 01:20:48
|
Hi, I compied cppcms 0.99.5 on a linux box (CentOS 5). Following documentation, I could run hello_world by "./hello -c config.js" and get hello world from http://localhost:8080/hello. But I failed to run session and forms, the error was "2011-01-07 01:08:45 GMT; cppcms, error: Caught exception [There is no such skin:]". What was I missing? Also, I tried to configure lighttpd following cppcms online document, but it failed to following errors in lighttpd log file: 2011-01-07 11:44:42: (log.c.75) server started 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. The fastcgi.server has already been set up in lighttpd config file according to the document: 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 } } Appreciate any advice. Thank you. Kind Regards, hce |
From: Artyom <art...@ya...> - 2011-01-07 08:08:24
|
How did you build the example? With makefile? What configuration are you using? Note: there are two makefiles and configuration files for dynamic templates loading and for static templates linking. Make sure you use right one, I assume you compiled with Makefile.dyn but run with config.js instead of config-dyn.js Artyom ----- Original Message ---- > From: hce <web...@gm...> > To: cppcms-users <cpp...@li...> > Sent: Fri, January 7, 2011 3:20:41 AM > Subject: [Cppcms-users] Running cppcms-0.99.5 examples > > Hi, > > I compied cppcms 0.99.5 on a linux box (CentOS 5). Following > documentation, I could run hello_world by "./hello -c config.js" and > get hello world from http://localhost:8080/hello. > > But I failed to run session and forms, the error was "2011-01-07 > 01:08:45 GMT; cppcms, error: Caught exception [There is no such > skin:]". What was I missing? > > Also, I tried to configure lighttpd following cppcms online document, > but it failed to following errors in lighttpd log file: > > 2011-01-07 11:44:42: (log.c.75) server started > 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. > > > The fastcgi.server has already been set up in lighttpd config file > according to the document: > > 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 > } > } > > Appreciate any advice. > > Thank you. > > Kind Regards, > > hce > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: hce <web...@gm...> - 2011-01-07 10:17:16
|
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. |
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. > |