running fastcgi server via lighttpd -


I am trying to set permissions for my fast binary, which started using the lighttpd web server When lighttpd starts my binary, then lighttpd access permissions are transferred to my binary. I need my binary to run with root permissions, so it can access some files I have read that security For reasons That is, lighttpd is undesirable to run as root, so I am relucant to do so if the lighttpd runs with the same permissions, then my pharmacy binary can not read / write files on my hand filesystem .

Below are some configurations in my lighttpd.conf file

  server.modules = ("mod_rewrite", "mod_redirect", "mod_access", "mod_fastcgi", "mod_proxy "," Mod_accesslog ") server.username =" www "server.groupname =" www "server.document-root =" / srv / www / htdocs / "server.errorlog =" /var/log/lighttpd/error.log " "Server.upload-dirs = (" / tmp ") server.max-request-size = 40960 server network backend =" write "fastcopy. Server = (".php" => ("localhost" => ("socket" => gt; "/var/run/lighttpd/php-fastcgi.socket", "max-progs" = & gt; ; "," Host "=" "(" host-host "=" ";" host "=" ";" host "=" & Gt; "& lt; hostAddress & gt;", "Port" => 8088, "Min-procs" => 1, "Max-procs" => 1, "Check-Local" = & Gt; "disable", "bin-path" = & gt; "/ pathToMyFastCGI_Binary & gt; /")))    

Thanks for looking at this question, I now have my FCGA binary set to "s" user / even to solve my problem. They have solved with permissions to lighttpd Start your permissions my FCGI binary and not with the light color.

Thank you.

Comments