Re: [Cppcms-users] Running cppcms-0.99.5 examples
Brought to you by:
artyom-beilis
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 > |