[Cppcms-users] Needed Guidance
Brought to you by:
artyom-beilis
|
From: David Y. <com...@gm...> - 2013-08-03 02:39:29
|
Hi all, I am a newbie on cppcms. I am convinced of cppcms vision is being faster, leaner and greener web solution using C++. I am trying to setup my VPS using the links found and setting a nginx server in debian wheezy. http://cppcms.com/wikipp/en/page/cppcms_1x_tut_web_server_config#Nginx http://cppcms.com/wikipp/en/page/ref_utils#run Make and Build cppcms/examples/hello_world cppcms_run hello -c config.js Well, I got a 502 Bad gateway error. In nginx.log, there is a permission denied on the socket. I am running cppcms_run as root, but the nginx worker thread was default to user nobody. I attempted to set /tmp/hello-fcgi-socket with 777 and chown nobody to no avail as cppcms_run will always change the file attributes of the socket file. I tried to configure the preloaded cppcms.... nginx.conf with "user root" or "user nobody", but the nginx.conf file will be updated with a fresh settings again. Hope that somebody can advise how to solve this issue. Thanks! David Yew |