Thread: [Cppcms-users] getting started..again
Brought to you by:
artyom-beilis
From: Keith K. <kk...@gm...> - 2011-12-21 03:48:45
|
Marcel, thanks for the reply, I had just joined the list and had settings wrong so I didn't get your reply directly but found it in the digest archive and have pasted it below.. Anyway, I can install programs in my home directory but I cannot directly edit httpd.conf. I can add apache handlers through a very basic interface, it lets me give two arguments, through a config page with an "Addhandler" form. So I have successfully added a handler 'fastcgi-script' for .fcgi extensions, but how do I test that for example with the hello_world app that I've built ? I haven't found any doc yet on running the example programs that get built with cppcms. thanks, Keith Message: 2 Date: Mon, 19 Dec 2011 22:57:21 +0100 From: Marcel Hellwig <ke...@co...> Subject: Re: [Cppcms-users] any "getting started" docs? To: cpp...@li... Message-ID: <4EE...@co...> Content-Type: text/plain; charset="utf-8" First: Can you compile and install apps? If not, it would be hard. Second. Can you edit httpd.conf (or similar), so you can start cppcms as fastcgi? If yes, this is something for you! http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_tut_web_server_config#Apache Regards, Marcel Hellwig Keith Kaple <kk...@gm...> schrieb: Hello All, I was happy to find cppcms since I have some c++ background from a few years ago and would like to use it for some "cloud apps" potentially. But I'm a little rusty ;-) The architecture doc says: # Architecture of CppCMS framework Application flow: - Several forked processes listen on the socket of cgi-like protocol: scgi, fcgi, http; - One of the processes accepts new connection and starts reading headers of the request. ... That implies to me that the process created with cppcms framework services the http request by itself, is that correct? I'm struggling a little with how to integrate cppcms with my hosting provider (bluehost.com <http://bluehost.com>).. They provide apache on linux. I have ssh access and can run processes within certain constraints, but I can't configure daemons or things like that where I control what listens on port 80. Can someone suggest the options to using cppcms with such a setup? I'm allowed to install custom handlers for my apache instance I think.. do you pass the request to cppcms that way or is there some other canonical way to use apache front end. thanks, Kape |
From: Artyom B. <art...@ya...> - 2011-12-22 11:33:16
|
> > Anyway, I can install programs in my home directory but I cannot directly edit httpd.conf. > I can add apache handlers through a very basic interface, > it lets me give two arguments through a config page with an "Addhandler" form. What arguments? > So I have successfully added a handler 'fastcgi-script' for .fcgi extensions, > but how do I test that for example with the hello_world app that I've built? > I haven't found any doc yet on running the example programs that get built with cppcms. > - Have you put the executable with ".fcgi" name into the "html" or "/cgi-bin" location? - Have you tried to use .htaccess files? - You also need to provide a configuration options it is usually can be done via environment variables. Also before you begin I'd strongly recommend you to do the beginning: - Build CppCMS with minimalistic options (no ICU, No openssl, no libgcrypt) - Build simple hello world application that is "Statically" linked with CppCMS - Hardcode the path to the configuration file in the code: int main(int argc,char **argv) { putenv("CPPCMS_CONFIG=/path/to/config.js"); ... } - Make sure that service.socket="stdin" Once you can upload the executable and start (no missing libraries etc.) try to configure the FastCGI handler see that it works. Then you can go further, setup startup options, libraries etc. In any case you need to consult your service provider about running FastCGI executables on your hosting. Also I'd strongly recommend using VPS for running CppCMS based services. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >thanks, > >Keith > > > >Message: 2 >Date: Mon, 19 Dec 2011 22:57:21 +0100 >From: Marcel Hellwig <ke...@co...> >Subject: Re: [Cppcms-users] any "getting started" docs? >To: cpp...@li... >Message-ID: <4EE...@co...> >Content-Type: text/plain; charset="utf-8" > >First: Can you compile and install apps? If not, it would be hard. >Second. Can you edit httpd.conf (or similar), so you can start cppcms as >fastcgi? If yes, this is something for you! > >http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_tut_web_server_config#Apache > >Regards, > >Marcel Hellwig > >Keith Kaple <kk...@gm...> schrieb: > > Hello All, > > I was happy to find cppcms since I have some c++ background from a > few years ago and would like to use it for some "cloud apps" > potentially. But I'm a little rusty ;-) > > The architecture doc says: > > # Architecture of CppCMS framework > > Application flow: > > - Several forked processes listen on the socket of cgi-like > protocol: scgi, fcgi, http; > - One of the processes accepts new connection and starts reading > headers of the request. > ... > > That implies to me that the process created with cppcms framework > services the http request by itself, is that correct? > > I'm struggling a little with how to integrate cppcms with my hosting > provider (bluehost.com <http://bluehost.com>).. They provide apache > on linux. I have ssh access and can run processes within certain > constraints, but I can't configure daemons or things like that where > I control what listens on port 80. > > Can someone suggest the options to using cppcms with such a setup? > I'm allowed to install custom handlers for my apache instance I > think.. do you pass the request to cppcms that way or is there some > other canonical way to use apache front end. > > thanks, > > Kape > >------------------------------------------------------------------------------ >Write once. Port to many. >Get the SDK and tools to simplify cross-platform app development. Create >new or port existing apps to sell to consumers worldwide. Explore the >Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join >http://p.sf.net/sfu/intel-appdev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |