| Paul Blondé 2007-07-24, 7:01 pm |
| *eyes crossing*
ok, you are getting into stuff that is way beyond me, but if you get it
working do let us know how you managed it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Paul Blond=E9
-----Original Message-----
From: Tony Shadwick [mailto:tshadwick@oss-solutions.com]=20
Sent: Tuesday, July 24, 2007 2:03 PM
To: Keith Roberts
Cc: php-install@lists.php.net
Subject: Re: [PHP-INSTALL] php(5)-cgi + Apache2 + fastcgiexternalserver =
=3D
lost hair
Not quite. You can't run the apache module. I think you're mistaking =
me...
On box A we have:
Apache2 + mod_fastcgi
on box B we have
PHP5 built as a CGI module (I have a CLI binary available too, but can=20
delete it for testing purposes).
On box B, I start the php repsonder by doing this:
/usr/local/bin/php-cgi -b 9000
From box A, I can telnet to box B on port 9000, and it answers.
Back on Box A, I have the config at the bottom of this message, where=20
I've defined in httpd.conf fastcgiexternalserver:
FastCGIExternalServer /path/to/stub/fcgi-bin/php -host (IP of box =
B):9000
Then in my virtual host I've placed this:
AddHandler php-cgi .php
Action php-cgi /fcgi-bin/php
ScriptAlias /fcgi-bin/php /path/to/stub/fcgi-bin/php
After restarting apache, I can then attempt to execute phpinfo.php which =
is in my site's document root. I get no input file specified, and in=20
the logs, it says that the remote php is returning a 404. Also included =
is the strings output of what I capture from tcpdump.
(Just realizing I'm becoming a broken record here...) :)
Keith Roberts wrote:
> That's interesting Tony. Didn't know you could do that. Are you saying =
> you want to run PHP as an apache module, and the CLI version remotely?
>=20
> If so, why would you want to do that?
>=20
> Regards
>=20
> Keith
>=20
> On Tue, 24 Jul 2007, Tony Shadwick wrote:
>=20
[color=darkred]
[color=darkred]
[color=darkred]
across[color=darkred]
php-host:9000[color=darkred]
So[color=darkred]
just[color=darkred]
has:[color=darkred]
what[color=darkred]
variable[color=darkred]
determine[color=darkred]
can[color=darkred]
fails.[color=darkred]
port[color=darkred]
to[color=darkred]
not[color=darkred]
isn't[color=darkred]
if[color=darkred]
and[color=darkred]
exist.[color=darkred]
being[color=darkred]
>=20
|