Re: [Cppcms-users] Needed Guidance
Brought to you by:
artyom-beilis
|
From: Shiv S. D. <shi...@gm...> - 2013-08-03 03:50:51
|
It is not a good idea to run CppCMS as root. You should run your FastCGI spawner with the same user name as nginx. Then all should be fine. I have assumed that you are using FastCGI. Respect, Shiv On Saturday 03 August 2013 08:09 AM, David Yew wrote: > 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 > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |