FastCGI + PHP5



Hi all.

anyone using FastCGI + PHP + Apache 1.3. ?
I've been trying for two days and i can't seem to configure apache with php fastcgi.

i have php set with:

.../configure --enable-fastcgi \
--enable-discard-path \
--enable-force-cgi-redirect \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-gd \
--with-freetype-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-xpm --enable-magic-quotes \
--with-pear \
--enable-gd-native-ttf \
--enable-memory-limit \
--with-zlib

that seems to be ok, php is running as (cgi-fcgi).
my problem is getting apache to run php cgi.

anyone have any decent docs getting the config working? i guess not many people using FastCGI w/PHP because it's seems so complicated to setup.
btw i have already installed the fastcgi libs and mod_fastcgi. what should an apache configure line look like when you complie php/fastcgi with it.. am i suppose to install apache first? some people say you have to install apache first but if you install apache first how will it locate the php libs?
.



Relevant Pages

  • Re: installing php5.2.3 on apache2.2 w mod_fastcgi
    ... I've been struggling with this problem for quite a while now, I've looked on google, but to no avail, documentation doesn't help me out either. ... Now, I know this isn't a pure php problem as such, but rather a problem in the cooperation of apache2.2, php and fastcgi. ... I've installed mod_fastcgi and apache 2.2.4, which work fine aswell ). ...
    (php.general)
  • Help with php5 install under windows
    ... This includes moving php from the ... Enable the PHP scripting language engine under Apache. ... or per-virtualhost web server configuration file. ... The PHP directives register_globals, ...
    (php.general)
  • RE: Virtual hosts and PHP "downloads": php5 and apache22 on FreeBSD6.1-STABLE
    ... Apache web server. ... Subject: Virtual hosts and PHP "downloads": php5 and apache22 on ...
    (freebsd-questions)
  • Re: CGI PHP vs. FastCGI vs. mod_php vs. application server?
    ... Apache is a very good choice. ... I've only used FastCGI with ruby on rails, ... some information about performance improvement with PHP. ... between FastCGI and server modules will depend on the HTTP ...
    (comp.lang.php)
  • Re: HELP: send binary replies back and forth ???
    ... > My php application needs to do the following: ... > My PHP script loops through all records and sends each of them ONE BY ONE. ... > other than to be able to communicate with apache. ... All communication is binary because the connection used is pricy and ...
    (comp.lang.php)