[FASTCGI] FastCGI app with unique uid:gid
lists at euca.us
Tue Jun 1 15:06:45 EDT 2010
signed up a few days ago and I am not clear if this
is the right place to post this question or not.. however,
I'll give it a shot.
Apache Apache/2.2.11 and mod_fcgid
So, I'm working with a company that is working on a
fastCGI version of their product. It is similar to
a php in that it is a scripting language.
a little background before I ask the question...
I want to get a fastCGI app running as a
I've set up a (Local) Name Based virtual host that has these
ServerAdmin webmaster at localhost
ScriptAlias /cgi-bin/ /home/fastcgitest/cgi-bin/
Everything from /home/fastcgitest
and down has a user:group of fastcgitest:fastcgitest
I've put my fastCGI app inside the /home/fastcgitest/cgi-bin/
Then, I have a .htaccess file in the /home/fastcgitest/www
directory as so:
AddType text/html .dono
AddHandler fcgid-script .dono
FCGIWrapper /home/fastcgitest/cgi-bin/WebCatalogEngine/WebDNA.fcgi .dono
DNS is set up in my LAN.
O.K., so when I access my test file through a browser:
It parses just fine other than the WebDNA.fcgi cannot write to the
directories owned by the unique user for that virtual host
(fastcgitest:fastcgitest)... which is something I need it to do.
I realized that it's because WebDNA.fcgi is still running as 'www-data'
(which is the default user for apache on Ubuntu), even though the
executable is owned:grouped by fastcgitest:fastcgitest
So, finally I come to the question:
What's the best way to get my WebDNA.fcgi app to run as user:group
btw, I posted this question to the apache users group, and I received:
http://www.itech7.com/Linux/Apache2-PHP-FastCGI-SuExec back from
the site owner... looking at that now.
More information about the FastCGI-developers