Re: [Cppcms-users] Newbie Question: Hello World and lighttpd server
Brought to you by:
artyom-beilis
From: Paradigm S. <pd...@gm...> - 2011-08-13 09:38:43
|
The command line I use is ./hello -c config.js However, I think I see the reason now since my CppCMS configuration is as follows from the examples directory: { "service" : { "api" : "http", "port" : 8080 }, "http" : { "script" : "/hello" } } The above means that it uses the built in http server I assume. I used the lighttpd instructions below but I should follow the instructions below for the CppCMS config.js file as well. Sorry for the confusion. Lighttpd, FastCGI, Start by Web Server You should enable mod-fastcgi and then use this Configuration file: <http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_tut_web_server_config#><http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_tut_web_server_config#> 1. fastcgi.server = ( 2. ## The script name of the application 3. "/hello" => (( 4. ## Command line to run 5. "bin-path" => "/opt/app/bin/hello -c /opt/app/etc/config.js", 6. "socket" => "/tmp/hello-fcgi-socket", 7. ## Important - only one process should start 8. "max-procs" => 1, 9. "check-local" => "disable" 10. )) 11. ) 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" => "/tmp/hello-fcgi-socket", ## Important - only one process should start "max-procs" => 1, "check-local" => "disable" )) ) CppCMS configuration: 1. { 2. "service" : { 3. "api" : "fastcgi", 4. "socket" : "stdin" // use server's socket 5. } 6. } On 08/13/2011 12:26 PM, augustin wrote: > Hello Paradigm, > > On Saturday 13 August 2011 05:03:15 pm Paradigm Shift wrote: >> I'm wondering if I'm running by default using cppcms debug server? How >> can I tell? > > What command line do you use to start the "hello" tutorial application? > In the docs you mention, there is a difference between "start by the web > server" and "independent start". That also makes a difference. Which procedure > do you use? > http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_tut_web_server_config > > Augustin. > > |