Hi guys,I'd like to use a cgi script to start the chef server, and I use a c script to give the "root" permissions to the cgi script (you know this method which can be easily found on the internet ). But it does not work...And I tried the method: sudo su www-data -c 'sudo chef-server -C /etc/chef/server.rb -c2 -p 4004" , which means create the chef server on port 4004. And the output of the command is "~ In 4650" which means the server is started at pid 4650, right?But with no luck, the server is not started at all... why?And then I tried to run the other command: sudo su dikang -c 'sudo chef-server -C /etc/chef/server.rb -c2 -p 4004", the "dikang" is my normal user account. And this command worked well and the server on port 4004 is started... What's wrong with the www-data user?I'm working on chef 0.8, apache2 and ubuntu 9.10.Could anyone give me the help please?ThanksDikang
Archive powered by MHonArc 2.6.16.