You are here: SuEXEC patch to work FastCGI with PHP « All PHP « IT news, forums, messages
SuEXEC patch to work FastCGI with PHP

Posted by Adam Szendzielorz on 01/05/05 21:55

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация