cppcms-users Mailing List for CppCMS C++ Web Framework (Page 67)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Artyom B. <art...@ya...> - 2012-12-19 07:36:53
|
CppCMS does not support "authorizer" FastCGI mode (and honestly I'm not aware of any framework that does, correct me if I wrong). authorizer FastCGI request is quite unusual one and not frequently used. Quoting original main > HTTP-Requests and allow or deny them according to the rights of the currently logged in user." Usually user management is done using session cookies. Can you explain what are you trying to do, maybe it can be done withoutusing lighttpd/fastcgi authorization module? For example if you want to serve some static files according to some permissions, there are other ways to do it. Also if you must to use fastcgi authorizer (which is basically simple responder with status for authorization requests) you can start a speparate thread and use libfastcgi directly, see: http://www.fastcgi.com/devkit/examples/authorizer.c Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Sab <rim...@gm...> >To: cpp...@li... >Sent: Tuesday, December 18, 2012 4:51 PM >Subject: Re: [Cppcms-users] Integrated FastCGI module > >Thanks for the answers. > >I built the hello word app and configured my Lighty to look for the application >on port 9000 as a FastCGI module. It seems to work fine, the main function gets >called and I can send a response back to the server. So that looks just fine. > >But as soon as I configure Lighty to run in authorizer mode, my application does >not receive the request. As far as I understand the authorizer mode, the server >should first send the request to the FastCGI module, the module should decide if >the access is granted or not and return accordingly a 200 or 401 as status in >the response. But I don't receive the request in my CppCMS app. According to the >server's error.log, the fastcgi module is called and it returns immediately with >no further comment, so it goes on to find the physical path (which in my case >does not exists but that shouldn't be the reason not to execute the FastCGI >function). > >What am I doing wrong? > >My config.js: >{ > "service" : { > "api" : "fastcgi", > "port" : 9000, > "ip" : "127.0.0.1" > } >} > >The critical parts of my lighttpd.conf: >server.modules = ( > "mod_access", > "mod_alias", > "mod_compress", > "mod_redirect", > "mod_accesslog", > "mod_fastcgi", > "mod_rewrite" >) > >fastcgi.server = ( > "" => > (( "host" => "127.0.0.1", > "port" => 9000, > "check-local" => "disable", > "docroot" => "/", > "mode" => "authorizer" > )) >) > >This is my error.log: > >2012-12-18 13:15:16: (request.c.304) fd: 8 request-len: 406 >GET /test24 HTTP/1.1 >Host: localhost >User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.16) Gecko/20120511 >Iceweasel/3.5.16 (like Firefox/3.5.16) >Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 >Accept-Encoding: gzip,deflate >Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >Keep-Alive: 300 >Connection: keep-alive > >2012-12-18 13:15:16: (response.c.241) run condition >2012-12-18 13:15:16: (response.c.300) -- splitting Request-URI >2012-12-18 13:15:16: (response.c.301) Request-URI : /test24 >2012-12-18 13:15:16: (response.c.302) URI-scheme : http >2012-12-18 13:15:16: (response.c.303) URI-authority: localhost >2012-12-18 13:15:16: (response.c.304) URI-path : /test24 >2012-12-18 13:15:16: (response.c.305) URI-query : >2012-12-18 13:15:16: (response.c.349) -- sanatising URI >2012-12-18 13:15:16: (response.c.350) URI-path : /test24 >2012-12-18 13:15:16: (mod_access.c.135) -- mod_access_uri_handler called >2012-12-18 13:15:16: (mod_fastcgi.c.3636) handling it in mod_fastcgi >2012-12-18 13:15:16: (response.c.470) -- before doc_root >2012-12-18 13:15:16: (response.c.471) Doc-Root : /var/www >2012-12-18 13:15:16: (response.c.472) Rel-Path : /test24 >2012-12-18 13:15:16: (response.c.473) Path : >2012-12-18 13:15:16: (response.c.521) -- after doc_root >2012-12-18 13:15:16: (response.c.522) Doc-Root : /var/www >2012-12-18 13:15:16: (response.c.523) Rel-Path : /test24 >2012-12-18 13:15:16: (response.c.524) Path : /var/www/test24 >2012-12-18 13:15:16: (response.c.541) -- logical -> physical >2012-12-18 13:15:16: (response.c.542) Doc-Root : /var/www >2012-12-18 13:15:16: (response.c.543) Rel-Path : /test24 >2012-12-18 13:15:16: (response.c.544) Path : /var/www/test24 >2012-12-18 13:15:17: (mod_fastcgi.c.3061) got proc: pid: 0 socket: >tcp:127.0.0.1:9000 load: 1 >2012-12-18 13:15:17: (mod_fastcgi.c.1492) released proc: pid: 0 socket: >tcp:127.0.0.1:9000 load: 0 >2012-12-18 13:15:17: (response.c.561) -- handling physical path >2012-12-18 13:15:17: (response.c.562) Path : //test24 >2012-12-18 13:15:17: (response.c.618) -- file not found >2012-12-18 13:15:17: (response.c.619) Path : //test24 >2012-12-18 13:15:17: (response.c.128) Response-Header: >HTTP/1.1 404 Not Found >Content-Type: text/html >Content-Length: 345 >Date: Tue, 18 Dec 2012 12:15:17 GMT >Server: lighttpd/1.4.28 > >Any suggestions? > >Thanks, >Sab > > > > > >------------------------------------------------------------------------------ >LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >Remotely access PCs and mobile devices and provide instant support >Improve your efficiency, and focus on delivering more value-add services >Discover what IT Professionals Know. Rescue delivers >http://p.sf.net/sfu/logmein_12329d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Sab <rim...@gm...> - 2012-12-18 14:52:13
|
Thanks for the answers. I built the hello word app and configured my Lighty to look for the application on port 9000 as a FastCGI module. It seems to work fine, the main function gets called and I can send a response back to the server. So that looks just fine. But as soon as I configure Lighty to run in authorizer mode, my application does not receive the request. As far as I understand the authorizer mode, the server should first send the request to the FastCGI module, the module should decide if the access is granted or not and return accordingly a 200 or 401 as status in the response. But I don't receive the request in my CppCMS app. According to the server's error.log, the fastcgi module is called and it returns immediately with no further comment, so it goes on to find the physical path (which in my case does not exists but that shouldn't be the reason not to execute the FastCGI function). What am I doing wrong? My config.js: { "service" : { "api" : "fastcgi", "port" : 9000, "ip" : "127.0.0.1" } } The critical parts of my lighttpd.conf: server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", "mod_accesslog", "mod_fastcgi", "mod_rewrite" ) fastcgi.server = ( "" => (( "host" => "127.0.0.1", "port" => 9000, "check-local" => "disable", "docroot" => "/", "mode" => "authorizer" )) ) This is my error.log: 2012-12-18 13:15:16: (request.c.304) fd: 8 request-len: 406 GET /test24 HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.16) Gecko/20120511 Iceweasel/3.5.16 (like Firefox/3.5.16) Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive 2012-12-18 13:15:16: (response.c.241) run condition 2012-12-18 13:15:16: (response.c.300) -- splitting Request-URI 2012-12-18 13:15:16: (response.c.301) Request-URI : /test24 2012-12-18 13:15:16: (response.c.302) URI-scheme : http 2012-12-18 13:15:16: (response.c.303) URI-authority: localhost 2012-12-18 13:15:16: (response.c.304) URI-path : /test24 2012-12-18 13:15:16: (response.c.305) URI-query : 2012-12-18 13:15:16: (response.c.349) -- sanatising URI 2012-12-18 13:15:16: (response.c.350) URI-path : /test24 2012-12-18 13:15:16: (mod_access.c.135) -- mod_access_uri_handler called 2012-12-18 13:15:16: (mod_fastcgi.c.3636) handling it in mod_fastcgi 2012-12-18 13:15:16: (response.c.470) -- before doc_root 2012-12-18 13:15:16: (response.c.471) Doc-Root : /var/www 2012-12-18 13:15:16: (response.c.472) Rel-Path : /test24 2012-12-18 13:15:16: (response.c.473) Path : 2012-12-18 13:15:16: (response.c.521) -- after doc_root 2012-12-18 13:15:16: (response.c.522) Doc-Root : /var/www 2012-12-18 13:15:16: (response.c.523) Rel-Path : /test24 2012-12-18 13:15:16: (response.c.524) Path : /var/www/test24 2012-12-18 13:15:16: (response.c.541) -- logical -> physical 2012-12-18 13:15:16: (response.c.542) Doc-Root : /var/www 2012-12-18 13:15:16: (response.c.543) Rel-Path : /test24 2012-12-18 13:15:16: (response.c.544) Path : /var/www/test24 2012-12-18 13:15:17: (mod_fastcgi.c.3061) got proc: pid: 0 socket: tcp:127.0.0.1:9000 load: 1 2012-12-18 13:15:17: (mod_fastcgi.c.1492) released proc: pid: 0 socket: tcp:127.0.0.1:9000 load: 0 2012-12-18 13:15:17: (response.c.561) -- handling physical path 2012-12-18 13:15:17: (response.c.562) Path : //test24 2012-12-18 13:15:17: (response.c.618) -- file not found 2012-12-18 13:15:17: (response.c.619) Path : //test24 2012-12-18 13:15:17: (response.c.128) Response-Header: HTTP/1.1 404 Not Found Content-Type: text/html Content-Length: 345 Date: Tue, 18 Dec 2012 12:15:17 GMT Server: lighttpd/1.4.28 Any suggestions? Thanks, Sab |
From: Lee E. <lee...@gm...> - 2012-12-17 21:32:19
|
Also developing your app as an cppcms app does not prevent your app from working as anything else - since you are the one building the main function. On Mon, Dec 17, 2012 at 8:23 PM, Shiv Shankar Dayal < shi...@gm...> wrote: > Hi, > > You can develop your application as a cppcms application and lighty > can use that application as fastcgi application. You can find > configuration options in documentation section. > > Hope this helps. > > Regards, > Shiv > > On 12/17/12, Sab <rim...@gm...> wrote: > > Hi All, > > > > I would like to create a connection between a Webserver (Lighty) and an > > already > > existing C++ application. Both web server and the application run on the > > same > > system, an embedded linux platform. Next to it’s regular tasks, the > > application > > would need to monitor the user’s HTTP-Requests and allow or deny them > > according > > to the rights of the currently logged in user. I figured FastCGI could be > > the > > answer as it can be configured to run in "authorizer" mode, which seems > to > > be > > matching what I need. > > > > So now I’m trying to find out how to integrate a FastCGI-Module into my > > existing > > application. As the database, where the user rights are stored is part > of my > > application, I would like the fcgi module to run IN the application, in a > > separate thread, instead of as a separate executable. I see the common > usage > > is > > the later but that wouldn’t work for me. > > > > I checked the FastCGI DevKit library "fcgiapp" and found that the module > has > > to > > be either launched by the server (bin-path) or if I want to make it run > > independently from the web server, it has to be started with spawn-fcgi. > Non > > of > > these options seems to help in my case, because as mentioned, the module > has > > to > > be a PART of my existing application. > > > > Does CppCMS support also only stand alone modules? Or would CppCMS help > in > > the > > realization of the above mentioned constellation? Does it support the > > Authorizer > > mode and allow me to parse the header of the request (uri, > > operation:GET/POST/DELETE..., user name, password)? > > > > I would very much appreciate any tip or comment, in which direction I > should > > start. > > > > Thanks, > > Sab > > > > > > > > > ------------------------------------------------------------------------------ > > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > > Remotely access PCs and mobile devices and provide instant support > > Improve your efficiency, and focus on delivering more value-add services > > Discover what IT Professionals Know. Rescue delivers > > http://p.sf.net/sfu/logmein_12329d2d > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > -- > Best regards, > Shiv Shankar Dayal > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- -- lee Lee Elenbaas lee...@gm... |
From: Shiv S. D. <shi...@gm...> - 2012-12-17 18:24:04
|
Hi, You can develop your application as a cppcms application and lighty can use that application as fastcgi application. You can find configuration options in documentation section. Hope this helps. Regards, Shiv On 12/17/12, Sab <rim...@gm...> wrote: > Hi All, > > I would like to create a connection between a Webserver (Lighty) and an > already > existing C++ application. Both web server and the application run on the > same > system, an embedded linux platform. Next to it’s regular tasks, the > application > would need to monitor the user’s HTTP-Requests and allow or deny them > according > to the rights of the currently logged in user. I figured FastCGI could be > the > answer as it can be configured to run in "authorizer" mode, which seems to > be > matching what I need. > > So now I’m trying to find out how to integrate a FastCGI-Module into my > existing > application. As the database, where the user rights are stored is part of my > application, I would like the fcgi module to run IN the application, in a > separate thread, instead of as a separate executable. I see the common usage > is > the later but that wouldn’t work for me. > > I checked the FastCGI DevKit library "fcgiapp" and found that the module has > to > be either launched by the server (bin-path) or if I want to make it run > independently from the web server, it has to be started with spawn-fcgi. Non > of > these options seems to help in my case, because as mentioned, the module has > to > be a PART of my existing application. > > Does CppCMS support also only stand alone modules? Or would CppCMS help in > the > realization of the above mentioned constellation? Does it support the > Authorizer > mode and allow me to parse the header of the request (uri, > operation:GET/POST/DELETE..., user name, password)? > > I would very much appreciate any tip or comment, in which direction I should > start. > > Thanks, > Sab > > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Best regards, Shiv Shankar Dayal |
From: Sab <rim...@gm...> - 2012-12-17 17:24:59
|
Hi All, I would like to create a connection between a Webserver (Lighty) and an already existing C++ application. Both web server and the application run on the same system, an embedded linux platform. Next to it’s regular tasks, the application would need to monitor the user’s HTTP-Requests and allow or deny them according to the rights of the currently logged in user. I figured FastCGI could be the answer as it can be configured to run in "authorizer" mode, which seems to be matching what I need. So now I’m trying to find out how to integrate a FastCGI-Module into my existing application. As the database, where the user rights are stored is part of my application, I would like the fcgi module to run IN the application, in a separate thread, instead of as a separate executable. I see the common usage is the later but that wouldn’t work for me. I checked the FastCGI DevKit library "fcgiapp" and found that the module has to be either launched by the server (bin-path) or if I want to make it run independently from the web server, it has to be started with spawn-fcgi. Non of these options seems to help in my case, because as mentioned, the module has to be a PART of my existing application. Does CppCMS support also only stand alone modules? Or would CppCMS help in the realization of the above mentioned constellation? Does it support the Authorizer mode and allow me to parse the header of the request (uri, operation:GET/POST/DELETE..., user name, password)? I would very much appreciate any tip or comment, in which direction I should start. Thanks, Sab |
From: Sergey <ser...@gm...> - 2012-12-08 15:53:03
|
Basile Starynkevitch <basile@...> writes: > Thanks. That works but I still don't understand why my tentative gave garbage. > > Cheers > You have to look what you run. |
From: Sergey <ser...@gm...> - 2012-12-08 15:47:58
|
Basile Starynkevitch <basile@...> writes: > > On Sat, Dec 08, 2012 at 03:24:34PM +0000, Sergey wrote: > > cppcms-1.0.2/examples/hello_world > > make > > ./hello_world -c config.js > > Thanks. That works but I still don't understand why my tentative gave garbage. > > Cheers > Because its other programm. Open cppcms-1.0.2/src/hello_world.cpp and you se. Use examples/ and you can also look tests/ |
From: Basile S. <ba...@st...> - 2012-12-08 15:31:56
|
On Sat, Dec 08, 2012 at 03:24:34PM +0000, Sergey wrote: > cppcms-1.0.2/examples/hello_world > make > ./hello_world -c config.js Thanks. That works but I still don't understand why my tentative gave garbage. Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** |
From: Sergey <ser...@gm...> - 2012-12-08 15:25:00
|
cppcms-1.0.2/examples/hello_world make ./hello_world -c config.js |
From: Basile S. <ba...@st...> - 2012-12-08 14:38:47
|
On Sat, Dec 08, 2012 at 06:32:37AM -0800, Artyom Beilis wrote: > You are running invalid executable file, not one you build, but an internal test executable for CppCMS's build directory called hello_world. > > Watch carefully what are you doing :-) Then could you give step by step instructions on how to build a *working* hello world example??? (Why can't the one in the distributed tar ball be a valid example? Why distribute it in the first place??) I just recompiled it, with the same buggy result glinka.x86_64 Libs/cppcms-1.0.2/build 15:35 .0 % rm hello_world glinka.x86_64 Libs/cppcms-1.0.2/build 15:35 .0 % make hello_world VERBOSE=1 /usr/bin/cmake -H/usr/src/Libs/cppcms-1.0.2 -B/usr/src/Libs/cppcms-1.0.2/build --check-build-system CMakeFiles/Makefile.cmake 0 make -f CMakeFiles/Makefile2 hello_world make[1]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' /usr/bin/cmake -H/usr/src/Libs/cppcms-1.0.2 -B/usr/src/Libs/cppcms-1.0.2/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /usr/src/Libs/cppcms-1.0.2/build/CMakeFiles 38 make -f CMakeFiles/Makefile2 CMakeFiles/hello_world.dir/all make[2]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' make -f booster/CMakeFiles/booster.dir/build.make booster/CMakeFiles/booster.dir/depend make[3]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' cd /usr/src/Libs/cppcms-1.0.2/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/Libs/cppcms-1.0.2 /usr/src/Libs/cppcms-1.0.2/booster /usr/src/Libs/cppcms-1.0.2/build /usr/src/Libs/cppcms-1.0.2/build/booster /usr/src/Libs/cppcms-1.0.2/build/booster/CMakeFiles/booster.dir/DependInfo.cmake --color= make[3]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' make -f booster/CMakeFiles/booster.dir/build.make booster/CMakeFiles/booster.dir/build make[3]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' make[3]: Nothing to be done for `booster/CMakeFiles/booster.dir/build'. make[3]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' /usr/bin/cmake -E cmake_progress_report /usr/src/Libs/cppcms-1.0.2/build/CMakeFiles 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [ 44%] Built target booster make -f CMakeFiles/cppcms.dir/build.make CMakeFiles/cppcms.dir/depend make[3]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' cd /usr/src/Libs/cppcms-1.0.2/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/Libs/cppcms-1.0.2 /usr/src/Libs/cppcms-1.0.2 /usr/src/Libs/cppcms-1.0.2/build /usr/src/Libs/cppcms-1.0.2/build /usr/src/Libs/cppcms-1.0.2/build/CMakeFiles/cppcms.dir/DependInfo.cmake --color= make[3]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' make -f CMakeFiles/cppcms.dir/build.make CMakeFiles/cppcms.dir/build make[3]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' make[3]: Nothing to be done for `CMakeFiles/cppcms.dir/build'. make[3]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' /usr/bin/cmake -E cmake_progress_report /usr/src/Libs/cppcms-1.0.2/build/CMakeFiles 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 [ 94%] Built target cppcms make -f CMakeFiles/hello_world.dir/build.make CMakeFiles/hello_world.dir/depend make[3]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' cd /usr/src/Libs/cppcms-1.0.2/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/Libs/cppcms-1.0.2 /usr/src/Libs/cppcms-1.0.2 /usr/src/Libs/cppcms-1.0.2/build /usr/src/Libs/cppcms-1.0.2/build /usr/src/Libs/cppcms-1.0.2/build/CMakeFiles/hello_world.dir/DependInfo.cmake --color= make[3]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' make -f CMakeFiles/hello_world.dir/build.make CMakeFiles/hello_world.dir/build make[3]: Entering directory `/xtra2/Libs/cppcms-1.0.2/build' Linking CXX executable hello_world /usr/bin/cmake -E cmake_link_script CMakeFiles/hello_world.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wextra -O2 -g CMakeFiles/hello_world.dir/src/hello_world.cpp.o CMakeFiles/hello_world.dir/skin1.cpp.o CMakeFiles/hello_world.dir/skin2.cpp.o -o hello_world -rdynamic libcppcms.so.1.0.2 booster/libbooster.so.0.0.1 -lpthread -lpcre -licuuc -licui18n -licudata -lgcrypt -ldl -lz -Wl,-rpath,/usr/src/Libs/cppcms-1.0.2/build:/usr/src/Libs/cppcms-1.0.2/build/booster make[3]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' /usr/bin/cmake -E cmake_progress_report /usr/src/Libs/cppcms-1.0.2/build/CMakeFiles 79 80 [100%] Built target hello_world make[2]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' /usr/bin/cmake -E cmake_progress_start /usr/src/Libs/cppcms-1.0.2/build/CMakeFiles 0 make[1]: Leaving directory `/xtra2/Libs/cppcms-1.0.2/build' glinka.x86_64 Libs/cppcms-1.0.2/build 15:36 .0 % ../../build/hello_world -c config.js zsh: no such file or directory: ../../build/hello_world glinka.x86_64 Libs/cppcms-1.0.2/build 15:36 .127 % cd /usr/src/Libs/cppcms-1.0.2/examples glinka.x86_64 Libs/cppcms-1.0.2/examples 15:36 .0 % ../../build/hello_world -c config.js zsh: no such file or directory: ../../build/hello_world glinka.x86_64 Libs/cppcms-1.0.2/examples 15:36 .127 % cd hello_world glinka.x86_64 cppcms-1.0.2/examples/hello_world 15:36 .0 % ../../build/hello_world -c config.js Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** |
From: Artyom B. <art...@ya...> - 2012-12-08 14:32:45
|
You are running invalid executable file, not one you build, but an internal test executable for CppCMS's build directory called hello_world. Watch carefully what are you doing :-) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Basile Starynkevitch <ba...@st...> >To: cpp...@li... >Sent: Saturday, December 8, 2012 4:28 PM >Subject: Re: [Cppcms-users] hello_world incorrectly working > >On Sat, Dec 08, 2012 at 11:44:18AM +0000, Sergey wrote: >> Basile Starynkevitch <basile@...> writes: >> >> > which is not what I expect.... >> >> > >> > What did I do wrong? >> > >> > Regards. >> >> I don't understand. What is a problem? > >Th produced HTML contains a lot of garbage and is not valid HTML. >[notice that there is no </body> in the output I have shown] >It is not the HTML code which the following routine should output > void my_hello_world::main(std::string /*url*/) > { > response().out()<< > "<html>\n" > "<body>\n" > " <h1>Hello World</h1>\n" > "</body>\n" > "</html>\n"; > } > >In other words, it seems that something is buggy in the example >(or probably in the cppcms library). > >Can someone reproduce the bug? > >Cheers >-- >Basile STARYNKEVITCH http://starynkevitch.net/Basile/ >email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 >8, rue de la Faiencerie, 92340 Bourg La Reine, France >*** opinions {are only mines, sont seulement les miennes} *** > >------------------------------------------------------------------------------ >LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >Remotely access PCs and mobile devices and provide instant support >Improve your efficiency, and focus on delivering more value-add services >Discover what IT Professionals Know. Rescue delivers >http://p.sf.net/sfu/logmein_12329d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Basile S. <ba...@st...> - 2012-12-08 14:28:19
|
On Sat, Dec 08, 2012 at 11:44:18AM +0000, Sergey wrote: > Basile Starynkevitch <basile@...> writes: > > > which is not what I expect.... > > > > > What did I do wrong? > > > > Regards. > > I don't understand. What is a problem? Th produced HTML contains a lot of garbage and is not valid HTML. [notice that there is no </body> in the output I have shown] It is not the HTML code which the following routine should output void my_hello_world::main(std::string /*url*/) { response().out()<< "<html>\n" "<body>\n" " <h1>Hello World</h1>\n" "</body>\n" "</html>\n"; } In other words, it seems that something is buggy in the example (or probably in the cppcms library). Can someone reproduce the bug? Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** |
From: Sergey <ser...@gm...> - 2012-12-08 11:50:05
|
Basile Starynkevitch <basile@...> writes: > which is not what I expect.... > > What did I do wrong? > > Regards. I don't understand. What is a problem? |
From: Basile S. <ba...@st...> - 2012-12-08 11:23:36
|
Hello All, I just discovered, downloaded and compiled cppcms-1.0.2 Linux/Debian/Sid/AMD64 GCC 4.7 When running the hello_world example (in the examples/hello_world source directory as ../../build/hello_world -c config.js I am getting the following HTML page http://localhost:8080/hello <html><body> <h1>Hello World!</h1> Dec 8, 2012<br> 10:14:08 AM<br> Dec 8, 2012 10:14:08 AM<br> TEXT<br> text<br> Text<br> <text><br> text%20text<br> dGV4dA<br> Saturday, December 8, 2012 10:14:08 AM GMT+01:00<br> Saturday, December 8, 2012 10:14:08 AM GMT+01:00<br> c<br> Set-Cookie:test=1354958047; Version=1<br/> Dec 8, 2012 hello <br>passed 0 days<br> passed one day<br> passed 2 days<br> passed 3 days<br> passed 4 days<br> passed 5 days<br> passed 6 days<br> passed 7 days<br> passed 8 days<br> passed 9 days<br> passed 10 days<br> passed 11 days<br> passed 12 days<br> passed 13 days<br> passed 14 days<br> passed 15 days<br> passed 16 days<br> passed 17 days<br> passed 18 days<br> passed 19 days<br> passed 20 days<br> passed 21 days<br> passed 22 days<br> passed 23 days<br> passed 24 days<br> passed 25 days<br> passed 26 days<br> passed 27 days<br> passed 28 days<br> passed 29 days<br> <body></html> which is not what I expect.... What did I do wrong? Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** |
From: Lee E. <lee...@gm...> - 2012-12-04 14:20:03
|
Hi Artyom, I looked over the code of the url_dispatcher - and i have a question: why you are not joining together the the different dispatchers from the application hierarchy so that at run time each request will pass only a single dispatcher (meaning a single regex match and then go directly to its app - or even better directly into its function) i understand that this will mean a harder work on the mount logic (you will need to join in the regex from the different levels) but mounting and unmounting is usually done only when the app loads - not while it serves client requests. the one drawback of my proposed approach is that if i want something done for a specific branch of the site (like blocking access) - it will need to be done using inheritance and/or function calls rather then placing the logic at the correct place in the cppcms app hierarchy. lee PS: there is another drawback - existing apps that depends on this behavior will break if you change it. -- -- lee Lee Elenbaas lee...@gm... |
From: augustin <aug...@ov...> - 2012-12-01 05:27:40
|
Hello all, This may be of interest to people here: It’s official! C++ now has it’s own “Marketing Department” and a reliable place to go learn about the language, where is it going and what’s happening around it. http://isocpp.org/ According to isoccp.org About page, goals are: 1) To promote dissemination of correct and up-to-date information about modern C++. 2) To promote greater availability of high-quality C++ libraries, including both standard libraries (by reducing barriers to submitting and adopting libraries in Standard C++ itself) and community libraries (by having an organized, and ideally tool-supported, way for C++ developers to discover and use libraries). augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
From: Christian G. <chr...@gm...> - 2012-11-26 08:02:25
|
2012/11/26 Artyom Beilis <art...@ya...>: > Several points: > > First of all take a look on: > > http://cppcms.com/wikipp/en/page/cppcms_1x_config#session.gc > > If the session is expired and gc runs the files of old sessions would be > deleted, so if the > folder is empty you can delete it. > At the moment I am using "storage":"memory" in a productive environment as I only need the session for user login. > > Also if you don't store much data in the session itself you can consider > using > client side session storage (singed + optionally eencrypted cookies) such > that > you don't even need to manage a folder for the files. > My application generates a zip file with all system log files and provides it as download to the browser. The bigger problem is that the user can upload files with max 350 MB to the local storage and I am not sure if this is too big. thanks -- Christian Gmeiner, MSc > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ________________________________ > From: Christian Gmeiner <chr...@gm...> > To: cpp...@li... > Sent: Monday, November 26, 2012 9:28 AM > Subject: [Cppcms-users] Session expired > > Hi all. > > Is there a way to detect if a user session (stored on the server side) > expired? > > I have he following problem. My cppcms app is running on an embedded > device where /tmp is only 25 MB big (tmpfs). I have a separate data > partition (1GB) to store generated zip files and uploaded update > files. I want to create a subfolder (session_coockie) in that > partition so that it is possible that multiple session could work in > 'parallel'. > Now I am looking for a way to delete the subfolder if the session expired. > > thanks > -- > Christian Gmeiner, MSc > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2012-11-26 07:51:52
|
Several points: First of all take a look on: http://cppcms.com/wikipp/en/page/cppcms_1x_config#session.gc If the session is expired and gc runs the files of old sessions would be deleted, so if the folder is empty you can delete it. Also if you don't store much data in the session itself you can consider using client side session storage (singed + optionally eencrypted cookies) such that you don't even need to manage a folder for the files. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Christian Gmeiner <chr...@gm...> >To: cpp...@li... >Sent: Monday, November 26, 2012 9:28 AM >Subject: [Cppcms-users] Session expired > >Hi all. > >Is there a way to detect if a user session (stored on the server side) expired? > >I have he following problem. My cppcms app is running on an embedded >device where /tmp is only 25 MB big (tmpfs). I have a separate data >partition (1GB) to store generated zip files and uploaded update >files. I want to create a subfolder (session_coockie) in that >partition so that it is possible that multiple session could work in >'parallel'. >Now I am looking for a way to delete the subfolder if the session expired. > >thanks >-- >Christian Gmeiner, MSc > >------------------------------------------------------------------------------ >Monitor your physical, virtual and cloud infrastructure from a single >web console. Get in-depth insight into apps, servers, databases, vmware, >SAP, cloud infrastructure, etc. Download 30-day Free Trial. >Pricing starts from $795 for 25 servers or applications! >http://p.sf.net/sfu/zoho_dev2dev_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Christian G. <chr...@gm...> - 2012-11-26 07:28:49
|
Hi all. Is there a way to detect if a user session (stored on the server side) expired? I have he following problem. My cppcms app is running on an embedded device where /tmp is only 25 MB big (tmpfs). I have a separate data partition (1GB) to store generated zip files and uploaded update files. I want to create a subfolder (session_coockie) in that partition so that it is possible that multiple session could work in 'parallel'. Now I am looking for a way to delete the subfolder if the session expired. thanks -- Christian Gmeiner, MSc |
From: Christian G. <chr...@gm...> - 2012-11-20 13:03:55
|
Sorry for the noise... got it working - cppcms::mount_point -- Christian Gmeiner, MSc 2012/11/20 Christian Gmeiner <chr...@gm...>: > try { > cppcms::service srv(argc,argv); > > // instantiate SSE application > booster::intrusive_ptr<SSE> sse = new SSE(srv); > srv.applications_pool().mount(sse); > > srv.applications_pool().mount(cppcms::applications_factory<Tssw>()); > > srv.run(); > } > catch(std::exception const &e) { > std::cerr<<e.what()<<std::endl; > } > > As you can see I want to mount a long running app with all my other > "normal" apps. > > > I only "normal" apps are working but not the long running once.. any hints? > > -- > Christian Gmeiner, MSc |
From: Christian G. <chr...@gm...> - 2012-11-20 12:54:40
|
try { cppcms::service srv(argc,argv); // instantiate SSE application booster::intrusive_ptr<SSE> sse = new SSE(srv); srv.applications_pool().mount(sse); srv.applications_pool().mount(cppcms::applications_factory<Tssw>()); srv.run(); } catch(std::exception const &e) { std::cerr<<e.what()<<std::endl; } As you can see I want to mount a long running app with all my other "normal" apps. I only "normal" apps are working but not the long running once.. any hints? -- Christian Gmeiner, MSc |
From: Rui C. <rui...@gm...> - 2012-11-19 19:58:34
|
Hey all, I'm new to C++ and Code::Blocks and I'm trying to set up the hello_world example on Code::Blocks, but I'm getting "undefined references" to cppcms stuff.. I've try adding "-lcppcms -lbooster" to the compiler options under "Project build > Compiler Settings > Other options". I've also added "/usr/local/lib" to the Linker Search Directories. These are the errors I get: -------------- Build: Debug in first_test --------------- Linking console executable: bin/Debug/first_test obj/Debug/hello.o: In function `my_hello_world::main(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': /home/rvc/Documents/Dev/first_test/hello.cpp:18: undefined reference to `cppcms::application::response()' /home/rvc/Documents/Dev/first_test/hello.cpp:18: undefined reference to `cppcms::http::response::out()' obj/Debug/hello.o: In function `main': /home/rvc/Documents/Dev/first_test/hello.cpp:29: undefined reference to `cppcms::service::service(int, char**)' ..... and so on... Any help or tip is welcome :) Thanks, Rui Coelho |
From: Lee E. <lee...@gm...> - 2012-11-19 07:17:53
|
In certain areas (like the city of "sderot") it is daily routine for several years now currently it escalated and larger areas of israel are now experiencing it on a daily basis On Mon, Nov 19, 2012 at 1:42 AM, Aris Setyawan <ari...@gm...> wrote: > You said this is daily routine? > > On 11/18/12, Lee Elenbaas <lee...@gm...> wrote: > > thanks for posting this > > > > > > On Fri, Nov 16, 2012 at 3:56 PM, Artyom Beilis <art...@ya...> > wrote: > > > >> http://blog.cppcms.com/post/112 > >> > >> > >> Artyom Beilis > >> -------------- > >> CppCMS - C++ Web Framework: http://cppcms.com/ > >> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > >> > >> > >> > ------------------------------------------------------------------------------ > >> Monitor your physical, virtual and cloud infrastructure from a single > >> web console. Get in-depth insight into apps, servers, databases, vmware, > >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. > >> Pricing starts from $795 for 25 servers or applications! > >> http://p.sf.net/sfu/zoho_dev2dev_nov > >> _______________________________________________ > >> Cppcms-users mailing list > >> Cpp...@li... > >> https://lists.sourceforge.net/lists/listinfo/cppcms-users > >> > >> > > > > > > -- > > -- > > lee > > Lee Elenbaas > > lee...@gm... > > > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- -- lee Lee Elenbaas lee...@gm... |
From: Aris S. <ari...@gm...> - 2012-11-18 23:42:44
|
You said this is daily routine? On 11/18/12, Lee Elenbaas <lee...@gm...> wrote: > thanks for posting this > > > On Fri, Nov 16, 2012 at 3:56 PM, Artyom Beilis <art...@ya...> wrote: > >> http://blog.cppcms.com/post/112 >> >> >> Artyom Beilis >> -------------- >> CppCMS - C++ Web Framework: http://cppcms.com/ >> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> >> ------------------------------------------------------------------------------ >> Monitor your physical, virtual and cloud infrastructure from a single >> web console. Get in-depth insight into apps, servers, databases, vmware, >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >> Pricing starts from $795 for 25 servers or applications! >> http://p.sf.net/sfu/zoho_dev2dev_nov >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > -- > -- > lee > Lee Elenbaas > lee...@gm... > |
From: Lee E. <lee...@gm...> - 2012-11-18 08:47:06
|
thanks for posting this On Fri, Nov 16, 2012 at 3:56 PM, Artyom Beilis <art...@ya...> wrote: > http://blog.cppcms.com/post/112 > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- -- lee Lee Elenbaas lee...@gm... |