[Cppcms-users] CppBlog: No configuration defined
Brought to you by:
artyom-beilis
From: Denys V. <va...@bi...> - 2012-04-10 21:06:27
|
Hi guys, I'm trying to setup cppblog on my machine. Originally I'm a c++ developer, but my experience in web technologies is not great. I'll be thankful if you could guide me in this installation. I've successfully build and installed required packages. I'm trying to use cppblog with nginx. my*nginx.conf* server { listen 80; ## listen for ipv4 listen [::]:80 default ipv6only=on; ## listen for ipv6 server_name 192.168.1.103; access_log /var/log/nginx/localhost.access.log; location / { root /var/www; index index.html index.htm; } location /doc { root /usr/share; autoindex on; allow 127.0.0.1; deny all; } location /images { root /usr/share; autoindex on; } location ~ ^/cppblog.*$ { # Socket to communicate fastcgi_pass unix:/tmp/cppblog-fcgi-socket; # Setup value of PATH_INFO variable fastcgi_split_path_info ^(/cppblog)((?:/.*))?$; fastcgi_param PATH_INFO $fastcgi_path_info; # # You can either use "include fastcgi_params;" # or set the variables below manually # # All supported CGI variables fastcgi_param SCRIPT_NAME /cppblog; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # end of server variables } } my changes to */usr/local/share/cppblog/config.js* blog.host = "192.168.1.103" blog.connection_string = "mysql:database=blog;user=den;password=asd;@pool_size=10" blog.session.client.hmac_key = "mykey" all other keys from your sample I'm trying to run it: *LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib cppblog* /*Failed: No configuration defined*/ 0xb74dc2c4: booster::stack_trace::trace(void**, int) + 0x24 in /usr/lib/libbooster.so.0 0x808966b: booster::backtrace::backtrace(unsigned int) + 0x5f in cppblog 0x80897c2: booster::runtime_error::runtime_error(std::string const&) + 0x30 in cppblog 0xb7601cda: cppcms::service::load_settings(int, char**) + 0xd7a in /usr/lib/libcppcms.so.1 0xb7603e99: cppcms::service::service(int, char**) + 0x69 in /usr/lib/libcppcms.so.1 0x80a5659: main + 0x2d in cppblog 0xb6f34c96: __libc_start_main + 0xe6 in /lib/libc.so.6 0x80839a1: ??? + 0x80839a1 in cppblog P.S. Also I've successfully created mysql DB using your scripts... -- Best regards, -- Denys Valchuk Skype: dvalchuk cell: +380664059110 |