using php with fastcgi on remote server

Thomas Berton <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
* Current setup:

Apache 2.0.55: ./configure --prefix=/path/apache
PHP 5.1.2: ./configure --prefix=/path/php --with-apxs2=/path/apache/bin/apxs
PHP 5.1.2 (cgi-fcgi): ./configure --prefix=/path/php-fcgi-version 
--enable-cgi --enable-fastcgi --enable-force-cgi-redirect
mod_fastcgi 2.4.2


* httpd.conf fastcgi section:

LoadModule fastcgi_module      modules/mod_fastcgi.so
AddHandler php-fastcgi .cphp
<Location /fcgi-bin/phpfcgi>
SetHandler fastcgi-script
Options +ExecCGI
</Location>
Action php-fastcgi /fcgi-bin/phpfcgi
AddType application/x-httpd-php .cphp


* /fcgi-bin/phpfcgi content:

#!/bin/sh
PHP_FCGI_CHILDREN=15
export PHP_FCGI_CHILDREN
exec /path/php-fcgi-version/bin/php


* phpinfo results:

.php : Server API Apache 2.0 Handler
.cphp: Server API CGI/FastCGI

(other info correspond with appropriate php)

So FastCGI/PHP setup seems to work on my local setup.
However I wish to use the FastCGIExternalServer method and do the PHP 
processing on a different server.

My questions:
1. Do I need to modify my phpfcgi script?
2. Can I simply add "FastCGIExternalServer /fcgi-bin/phpfcgi -host 
host:port" to my httpd.conf
3. Can I install PHP on the remote server where I want to and do I still 
need the cgi-fcgi PHP version on the webserver itself?
4. What is necessary on the remote server besides a cgi-fcgi version of 
PHP? Do I need to have a copy of the PHP scripts I wish to run or does 
this only have to be present on the webserver?
5. Can I start the php cgi-fcgi version with -b in the background or are 
other steps required?

Thanks in advance.
___________________________________
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.