Jeff Trawick wrote:
> Sriram Natarajan wrote:
>>
>>
>> Jeff Trawick wrote:
>>> SUWNapch22m-php52 (mod_php) installs a conf file that loads mod_php 
>>> and sets up handler associations for php files, if the 32-bit httpd 
>>> with prefork MPM is used.
>>>
>>
>>> SUNWphp52 installs php-cgi, which can be used with any httpd mode 
>>> via mod_fcgid (FastCGI).
>>>
>>> We could install php-fastcgi.conf which sets up FastCGI PHP if
>>>
>>> * mod_fcgid loaded
>>> * either worker MPM or 64-bit httpd is used
>>>
>>> It seems that such a conf file belongs to SUNWphp52, which delivers 
>>> the PHP FastCGI support, but it shouldn't depend on httpd; also, 
>>> perhaps it would be disturbing to not use httpd at all but have 
>>> /etc/apache2/2.2/conf.d ???
>>
>> Currently, SUNWphp52u (usr) or SUNWphp52r (root configuration files) 
>> package carries files only with respect to php. apache configuration 
>> and module files are delivered by SUNWapch22[rm]-php52. We could 
>> probably deliver php5.2-fcgi.conf under /etc/apache/2.2/conf.d as 
>> part of SUNWapch22r-php52 (our current package for mod_php)
>>
>> this configuration file can provide fastcgi configuration if fastcgi 
>> module is loaded. because of the way, fastcgi can be configured, i 
>> guess, user will need to make some change to this php5.2-fcgi.conf to 
>> get fastcgi working with php
> The conf file below works for me without having to be touched. I think 
> this is equivalent to what we have for Lighttpd, but it is missing the 
> following support from the mod_php config:
>
> AddHandler application/x-httpd-php-source .php5s
> AddHandler application/x-httpd-php-source .phps
>
> (If that is important, it should be added to the Lighttpd PHP conf 
> file as well.)
>
> BTW, this uses a new mod_fcgid 2.3.x directive FcgidCmdOptions, and 
> the new FcgidWrapper name for an existing directive, so it won't work 
> with old mod_fcgid 2.2. (Old mod_fcgid 2.2 directive names are 
> respected by new mod_fcgid, but 2.2 didn't have anything that 
> corresponds to FcgidCmdOptions.)
>
> -----------------------php5.2-fcgi.conf-----------------------
> <IfModule !mod_php5.c>
> <IfModule mod_fcgid.c>
> #
> # Cause the PHP interpreter to be invoked via FastCGI to handle files 
> with a .php extension.
> #
> FcgidWrapper "/usr/php/5.2/bin/php-cgi -c /etc/php/5.2/php.ini" .php
>
> # Use these settings for PHP, irrespective of what is defined at the 
> server or
> # vhost level for other applications.
>
> FcgidCmdOptions /usr/php/5.2/bin/php-cgi \
> InitialEnv PHP_FCGID_MAX_REQUESTS=10000 \
> InitialEnv PHP_FCGID_CHILDREN=0 \

oops, this part isn't quite right... for one, it is 
PHP_FCGI_MAX_REQUESTS without the "D"

I guess the point is that a delivered conf file could be useful for 
simple PHP-over-FastCGI use.


Reply via email to