cppcms-users Mailing List for CppCMS C++ Web Framework (Page 120)
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: augustin <aug...@ov...> - 2011-01-10 03:56:38
|
Hello Artyom: I asked the following question at StackOverflow. http://stackoverflow.com/questions/4643531 I didn't find examples in the source of cppcms on how to handle templates with cmake. With 8000+ points, you ought to be able to create the cppcms tag at SO. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-01-08 08:42:19
|
>I knew it. >I plan to add an FTS search box in this blog. One small point: I'm going to convert (but most likely rewrite) the blog to CppCMS 1.x.x at some point. The blog's code is very bad and very old - it does not even use session and forms support of CppCMS, it also has some other **very** serious issues that I'm not going to discuss on this list (if you want e-mail me privately) So it should be almost rewritten and I probably going to do it in a month or two - not decided when, as it is quite a lot of work to do. Regards, Artyom |
From: Aris S. <ari...@gm...> - 2011-01-08 06:37:01
|
I already fix it :). My blog is running. these problem were about: 1. I must comment out openjaded related command from line 579 until 590. These lines are about creating sqlite3 documentation and I can skip these. 2. Related to error *"/usr/local/lib/dbd/libdbdsqlite3.so: undefined symbol: _dbi_internal_error_handler"*, this is a bug from 0.8.3 version libdbi-driver. I upgraded it to 0.8.3-1. I found it here: http://www.mail-archive.com/lib...@li.../msg00135.html On Sat, Jan 8, 2011 at 1:16 PM, Aris Setyawan <ari...@gm...> wrote: > I have found that I forget to install libdbi driver for sqlite3. After > install it, the following error occur: > > > [root@masihmurah cms]# ./run_lighttpd > /usr/local/lib/dbd/libdbdsqlite3.so: undefined symbol: > _dbi_internal_error_handler > libdbi: Failed to load driver: /usr/local/lib/dbd/libdbdsqlite3.so > 2011-01-07 20:06:53: (log.c.166) server started > > Press any key to exit > Failed to access DBFailed to load backend > > please help.. > |
From: Aris S. <ari...@gm...> - 2011-01-08 06:16:12
|
I have found that I forget to install libdbi driver for sqlite3. After install it, the following error occur: [root@masihmurah cms]# ./run_lighttpd /usr/local/lib/dbd/libdbdsqlite3.so: undefined symbol: _dbi_internal_error_handler libdbi: Failed to load driver: /usr/local/lib/dbd/libdbdsqlite3.so 2011-01-07 20:06:53: (log.c.166) server started Press any key to exit Failed to access DBFailed to load backend please help.. |
From: Aris S. <ari...@gm...> - 2011-01-08 00:13:13
|
> Keep in mind the blog is not officially released > and still has some "raw" parts in it. I knew it. I plan to add an FTS search box in this blog. I have create sqlite3 database in "db" directory, then I configure config.txt manually. But it still raised the same error. What kind of error "*Failed to access DBFailed to load backend*" is? how I can find more detailed error message? here are my config.txt configuration: *############## # SQL Engine # ############## # dbi.debug=1 # dbi.engine="mysql" dbi.engine="sqlite3" # dbi.engine="pgsql" # mysql.db="cppcms" # mysql.user="root" # mysql.pass="root" sqlite3.db="sqloe.db" sqlite3.dir="./db/" # pgsql.db="cppcms" # pgsql.user="artik" * Here are errors from my terminal: *[root@masihmurah cms]# ./run_lighttpd Failed to access DBFailed to load backend 2011-01-07 13:56:59: (log.c.166) server started Press any key to exit 2011-01-07 13:57:08: (mod_fastcgi.c.1734) connect failed: Connection refused on unix:/tmp/cppblog.socket 2011-01-07 13:57:08: (mod_fastcgi.c.3037) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1 2011-01-07 13:57:08: (mod_fastcgi.c.3608) all handlers for /blog? on /blog are down. 2011-01-07 13:57:10: (mod_fastcgi.c.2864) fcgi-server re-enabled: unix:/tmp/cppblog.socket * |
From: Artyom <art...@ya...> - 2011-01-07 20:08:56
|
> > Hi, > > I try to use the blob type of sqlite3 with cppdb, to stock hashed passwords, >but It doesn't work. > It seems it's not implemented. So I would like to know when you think to do >it. > cppdb supports blob type, however it is done via iostream interface. But basically with sqlite3 plain strings (I think) should work as well. So you need to: std::ostringstream ss; ss.write(binary_password,length); sql << "INSERT into (user,password) values(?,?)" << username << ss; However I do recommend storing it as hexadecimal value as it is much easier to print and manipulate them when you work with DB directly - i.e. run queries directly via sqlite3 - something very useful. > > I want to stock under binary because it's space efficient and it's the type >returned by cppcms::message_digest::md5() Note that there is cppcms::util::md5hex as well that makes hexadecimal sring In any case I would rather suggest using sha1 and not forget salting. Even better use hmac rather then plain message digest to store passwords. > > thank you very much > Baptiste Regards, Artyom |
From: Artyom <art...@ya...> - 2011-01-07 20:01:07
|
You need to create the database first and run the sqlite configuration script, i.e.: sqlite3 my.db <data-sqlite3.sql Something like that and then configure it in the configuration file. Same for any other database you may want to use. Keep in mind the blog is not officially released and still has some "raw" parts in it. Artyom ----- Original Message ---- > From: Aris Setyawan <ari...@gm...> > To: cpp...@li... > Sent: Fri, January 7, 2011 5:58:31 PM > Subject: [Cppcms-users] cppcms blog, failed to access sqlite3 backend > > After I have successfully build cppcms 0.0.x and cms blog source, then > I ran cppblog_setup and run_lighttpd command, but an error related to > "failed backend access" raised. > > Here are outputs from my terminal: > > [root@masihmurah cms]# ./cppblog_setup > Select Backend > 1 - MySQL > 2 - PostrgreSQL > 3 - Sqlite3 > 3 > DATABASE > sqloe > Enter Blog username and password > arissety balbalanA1 > [root@masihmurah cms]# ./run_lighttpd > Press any key to exit > Failed to access DBFailed to load backend > 2011-01-07 05:43:56: (log.c.166) server started > > was I wrong entering blog username and password? > where is the location of my sqlite database file? > > ------------------------------------------------------------------------------ > 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: Baptiste D. <bip...@gm...> - 2011-01-07 17:02:24
|
Hi, I try to use the blob type of sqlite3 with cppdb, to stock hashed passwords, but It doesn't work. It seems it's not implemented. So I would like to know when you think to do it. I want to stock under binary because it's space efficient and it's the type returned by cppcms::message_digest::md5() thank you very much Baptiste |
From: Aris S. <ari...@gm...> - 2011-01-07 16:03:26
|
After I have successfully build cppcms 0.0.x and cms blog source, then I ran cppblog_setup and run_lighttpd command, but an error related to "failed backend access" raised. Here are outputs from my terminal: [root@masihmurah cms]# ./cppblog_setup Select Backend 1 - MySQL 2 - PostrgreSQL 3 - Sqlite3 3 DATABASE sqloe Enter Blog username and password arissety balbalanA1 [root@masihmurah cms]# ./run_lighttpd Press any key to exit Failed to access DBFailed to load backend 2011-01-07 05:43:56: (log.c.166) server started was I wrong entering blog username and password? where is the location of my sqlite database file? |
From: Artyom <art...@ya...> - 2011-01-07 11:06:29
|
> > > Hello, > > I would like to add some custom configuration to the application. Hello, cppcms::application::settings() return the json object you can access to fetch the data you need. See for example from wikipp: syntax_highlighter=settings().get("wikipp.syntax_highlighter",""); For more detailed examples of using json object see under examples/json directory Artyom |
From: Artyom <art...@ya...> - 2011-01-07 10:57:02
|
> Hello, > > First, I currently cannot contribute anything to the wiki. I cannot connect to > > the primary site: > > art-blog.no-ip.info: Socket operation timed out > The server art-blog.no-ip.info refused to allow this computer > to make a connection. > Make sure you have up-to-date DNS, if not flush it, the IP is changed once in a while to there maybe temporary issues. > > When running the application (apache2 / fastcgi / apache started), where is > std::cerr? > I have set up the apache error.log but the std::cerr messages do not show > there, nor anywhere I looked in /var/log/. I don't know how apache or other web servers handle standard error of the applications they start, most of them just ignore it so I would not relay on this. > > I have tried to set the log file as described here: > http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_config#logging.stderr > { > "service" : { > "api" : "fastcgi", > "socket" : "stdin", > }, > "logging" : { > "file" : { > "name" : "/www/cppcms/logs/cppcms.log", > "append" : true, > }, > }, > } > but the application won't run if I add the "logging" section to config.js. > Maybe I am missing something. > More explicit examples would be useful in that section of the wiki. > Logging is done using BOOSTER_ERROR like family of macros: See: http://art-blog.no-ip.info/cppcms_ref_v0_99/log_8h-source.html Basically you do BOOSTER_WARNING("myapp") << "Failed to do something for " << foo; This allows you to filter messages by warning levels and specific application parts that should be traced. See: cppcms::log namespace for details (in Doxygen reference) > > So, if I add code like this in my cppcms application: > std::cerr << message << std::endl; > Where can I find such messages? > Likely nowhere as most web servers ignore standard error of the application and redirect it to /dev/null Artyom |
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. > |
From: Artyom <art...@ya...> - 2011-01-07 10:50:33
|
> Thanks for your quick reply Artyom, > > I have finally decided to go with a VPS solution. > > Would like to know, as to which configuration would be best with regards to > performance and concurrency. > > Would using this with apache/fastcgi would be fastest or would it be best by > directly running the program: (as shown in one of your examples) > ./hello -c config.js > http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_tut_hello > > > best regards, > Abhishek > First of all I strongly recommend NOT to use internal HTTP server in production as it is designed for testing and debugging only. I would recommend using lightweight web-server like Lighttpd, Nginx or Cherokee in combination with FastCGI protocol. Artyom |
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: augustin <aug...@ov...> - 2011-01-07 10:04:39
|
Hello, I would like to add some custom configuration to the application. Most likely, the place to do so is in config.js. http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_config I noted: json::value const& cppcms::service::settings http://cppcms.sourceforge.net/cppcms_ref_v0_99/classcppcms_1_1service.html#2655891c41745defac52587b4ecae53b http://cppcms.sourceforge.net/cppcms_ref_v0_99/classcppcms_1_1json_1_1value.html But I still have no clue as to how to retrieve such custom configuration from within my application. Thanks. augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2011-01-07 10:01:21
|
Hello, First, I currently cannot contribute anything to the wiki. I cannot connect to the primary site: art-blog.no-ip.info: Socket operation timed out The server art-blog.no-ip.info refused to allow this computer to make a connection. When running the application (apache2 / fastcgi / apache started), where is std::cerr? I have set up the apache error.log but the std::cerr messages do not show there, nor anywhere I looked in /var/log/. I have tried to set the log file as described here: http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_config#logging.stderr { "service" : { "api" : "fastcgi", "socket" : "stdin", }, "logging" : { "file" : { "name" : "/www/cppcms/logs/cppcms.log", "append" : true, }, }, } but the application won't run if I add the "logging" section to config.js. Maybe I am missing something. More explicit examples would be useful in that section of the wiki. So, if I add code like this in my cppcms application: std::cerr << message << std::endl; Where can I find such messages? Thanks. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Abhishek K. <abh...@gm...> - 2011-01-07 09:09:10
|
> > You are probably familiar with this: > > http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_tut_web_server_config > > You need to refer to your hosting provider documentation about how to run > FastCGI applications - i.e. how to configure your hosting to run them - > start and execute, maybe communicate with external fastcgi process. > > Artyom > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > Thanks for your quick reply Artyom, I have finally decided to go with a VPS solution. Would like to know, as to which configuration would be best with regards to performance and concurrency. Would using this with apache/fastcgi would be fastest or would it be best by directly running the program: (as shown in one of your examples) ./hello -c config.js http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_tut_hello best regards, Abhishek |
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 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-06 14:15:51
|
> Good question. > What about the cppcms / cppdb and other necessary libraries? > Can we have a simple tutorial on how to install them and run them from our > home directory? > Few points: 1. For fastcgi configuration - you need to refer to your hosting provider. 2. For deploy, you have two options: - just compile all statically, cppdb has instructions how to do it (because it has dynamic modules loading) For cppcms it is simple as well - just link with libcppcms.a and libboooster.a and provide additional dependencies like -lpcre -lz etc, this strongly depends on your build configuration: i.e. are you using icu, openssl or gcrypt, what do you have on hosting (shared libraries) etc. - compile dynamically, copy shared objects and provide LD_LIBRARY_PATH or use -rpath option - but this depends on the hosting as well. The problem with such tutorial it is **very dependent** on specific shared hosting provider - which libraries you have installed and which does not, what versions and what distribution. How can you configure the hosting service at all. This isn't a tutorial that is easy to write as-is. I'd suggest following: - If you are using a shared hosting service for running CppCMS write a tutorial in Wiki how to do it with specific issues that you have for your provider. I would be glad to help solving issues you run into. - I strongly recommend using virtual private servers, they are cheap today and they give you full control on what you can install and how. Regards, Artyom |
From: augustin <aug...@ov...> - 2011-01-06 13:25:48
|
On Thursday 06 January 2011 08:41:14 pm Abhishek Kaushik wrote: > I wanted to run cppcms on a shared hosting. I have a shell access too. > Good question. What about the cppcms / cppdb and other necessary libraries? Can we have a simple tutorial on how to install them and run them from our home directory? Thanks. A. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-01-06 13:19:51
|
> > Hello Artyom: > > Thanks a lot for this great project > > I wanted to run cppcms on a shared hosting. I have a shell access too. > > Only concern I have, is that I am not allowed to modify any apache's conf >file. > > Is there a way to run my app without touching apache's conf files? > > Your help would be much helpful.. i am planning to convert some of my existing > websites into cppcms...and have my future websites on the same too. > > PS: OS is Linux (CentOS), Apache 2.2 with FastCGI. > > Thanks > Abhishek Kaushik > You are probably familiar with this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_tut_web_server_config You need to refer to your hosting provider documentation about how to run FastCGI applications - i.e. how to configure your hosting to run them - start and execute, maybe communicate with external fastcgi process. Artyom |
From: Abhishek K. <abh...@gm...> - 2011-01-06 12:45:19
|
Hello Artyom: Thanks a lot for this great project I wanted to run cppcms on a shared hosting. I have a shell access too. Only concern I have, is that I am not allowed to modify any apache's conf file. Is there a way to run my app without touching apache's conf files? Your help would be much helpful.. i am planning to convert some of my existing websites into cppcms...and have my future websites on the same too. PS: OS is Linux (CentOS), Apache 2.2 with FastCGI. Thanks Abhishek Kaushik |
From: Klaim <mj...@gm...> - 2011-01-05 21:06:31
|
> > > If you want to read the blog without accessing art-blog.no-ip.info domain > you can use any external RSS-Feed reader like GMail's rss reader or > Yahoo's rss reader that download its content on hist own so you would > not have to access this domain directly. > > CppCMS's blog content can be fully read from RSS. > > Artyom > > > Cool then I'll use my netvibes to read it then. Thanks! > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: <sla...@ya...> - 2011-01-05 19:12:03
|
Thank you! It was about using xmpp transport - gloox lib actually. When needed wait for event onConnect or periodically call recv() after authorization in another threads. 05.01.2011, 22:01, "Artyom" <art...@ya...>: > ----- Original Message ---- > >> From: Якунин Владимир <sla...@ya...>; >> To: cpp...@li... >> Sent: Wed, January 5, 2011 12:13:23 PM >> Subject: [Cppcms-users] event driven functions inside CppCMS 1x >> >> Hello Artyom and Happy New Year! >> >> Whether there is an elegant way to use threaded callback functions inside >> CppCMS? >> As i know - CppCMS use Asio & boost::thread - so i still can use boost::thread >> natively >> (with some callback template inside calling). But may have a more ready >> solution inside CppCMS? > > Hello, > > You should be more specific about what you mean. > > If you want to post something for execution in the event loop you can use > cppcms::service::post > if you want to post something for execution in thread pool you can > cppcms::service::thread_pool. > > Artyom > >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |