FastCGI and PHP

MrJacK <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <1089575944.1983.17.camel@merlin>
Hi,

I don't understand exactly how FastCGI/Apache2/PHP works together.

Actually i have this :

Real directory :

/var/www/fcgi/

Inside this :

rphp => the php executable

php => the following script :

#!/bin/sh
PHPRC="/etc/php/php.ini"
export PHPRC
PHP_FCGI_CHILDREN=1
export PHP_FCGI_CHILDREN
exec /var/www/fcgi/rphp


Now in the Apache conf :

ScriptAlias /fcgi/ "/var/www/fcgi/"
FastCgiWrapper On
FastCgiExternalServer /var/www/fcgi/php -host 127.0.0.1:8008
AddHandler php-fastcgi .php
<Location /fcgi/php>
        SetHandler fastcgi-script
</Location>
Action php-fastcgi /fcgi/php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


This works, but what is the fonction of FastCgiExternalServer ?
I ask this because i don't have a process like /var/www/fcgi/rphp -b
127.0.0.1:8008 running and that works nevertheless.


Thanks for your help

Regards,

Raphaël

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.