By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

SuEXEC patch to work FastCGI with PHP

P: n/a
Hello!

I'm searching patch for Apache SuEXEC (1.3.*) which get me gate to work PHP
(compiled with --enable-fastcgi) with mod_fastcgi. SuEXEC check owner/group
of script before run script, i don't want this! I have this configuration:

httpd.conf:

[...]
LoadModule fastcgi_module libexec/mod_fastcgi.so
[...]
FastCgiWrapper /usr/local/apache/bin/suexec
FastCgiServer /usr/local/apache/php/php -user www -group www
AddHandler php-fastcgi .php
<Location /f-php-cgi/php>
SetHandler fastcgi-script
</Location>
Action php-fastcgi /f-php-cgi/php
AddType application/x-httpd-php .php
Alias /f-php-cgi /usr/local/apache/php
[...]
script: /usr/local/apache/php/php is:

#!/bin/sh
PHPRC="/usr/local/lib/php.ini"
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /usr/local/bin/php

(script and his parent directory are owned by www/www).

I want to run php scripts with rights of user which are set (User and
Groups) in virtualhost using FastCGI.

Can You help me ?:)
Thank You.
Best regards.

--
Adam Szendzielorz
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Adam Szendzielorz <ad**@nospam-konta.nospam.pl> wrote in
news:Xn*******************************@193.110.122 .97:
I want to run php scripts with rights of user which are set (User and
Groups) in virtualhost using FastCGI.


OK I now got it - run perfectly:))
Best regards!!

--
Adam Szendzielorz
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.