I'm running mod_fcgid on freebsd and it is working fine. Here you find 
my apache config files and the way suexec is build.

<IfModule fcgid_module>
         # Set config options for FCGID
         PHP_Fix_Pathinfo_Enable 1
         PASSHEADER AUTHORIZATION
         MaxRequestsPerProcess 500
         FastCgiAuthenticatorAuthoritative off
</IfModule>

<IfModule !fcgid_module>
         <FilesMatch "\.(php|php5|pl|cgi)$">
                 Order allow,deny
                 Deny from all
                 Satisfy All
         </FilesMatch>

</IfModule>

<VirtualHost *:80>
     ServerAdmin [EMAIL PROTECTED]
     DocumentRoot "/home/example/web
     ServerName web.example.com
     SuexecUserGroup cinergi foobaz
     <Directory />
         <IfModule fcgid_module>
                 AddHandler fcgid-script .php
                 AddHandler cgi-script .cgi .pl
                 AddType text/html php
                 FCGIWrapper "/home/example/fcgi-bin/php5" .php
         </IfModule>
         AllowOverride All
         Options +Indexes +FollowSymLinks +ExecCGI
         Order allow,deny
         Allow from all
     </Directory>
</VirtualHost>


# suexec -V
  -D AP_DOC_ROOT="/home"
  -D AP_GID_MIN=1000
  -D AP_HTTPD_USER="www"
  -D AP_LOG_EXEC="/var/log/httpd-suexec.log"
  -D AP_SAFE_PATH="/usr/local/bin:/usr/local/bin:/usr/bin:/bin"
  -D AP_UID_MIN=1000
  -D AP_USERDIR_SUFFIX="public_html"

# cat /home/starhost/fcgi-bin/php5
#!/bin/sh
PHPRC="/home/example"
export PHPRC
PHP_FCGI_CHILDREN=0
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/local/bin/php-cgi


Noël Elsten

on 16-6-2008 22:45 Anton - Valqk wrote:
> Alli Quaknaa wrote:
>> Well,
>> if you're really desperate, I have a "solution" with mod_php and
>> mod_ruid, but I don't know if it realyl does what you want. It does no
>> chroot, but it does change uid/gid. What specifically are you looking
>> for?
>>   
> is there freebsd port?
>> Sorry, but doN expect any help regarding suexec modification from me,
>> I have no experience in this area.
>> al-Quaknaa
>>   
> I need to use my suexec because it's pretty custom and nothing will work
> if not used.
> sorry, is there anyone else that can help?
> I simply need to understand the mechanism of passing .php file and
> directory to the wrapper...
> thanks.
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Mod-fcgid-users mailing list
>> Mod-fcgid-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users
>>
>>   
> 
> 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to