php 4.4.4 + fastCGi

Kestas

Verified User
Joined
Feb 17, 2006
Messages
15
Hello,
I've tryed to compile php with fastCGI, but no luck for 2 days :(

any help ?

I've tryed to add some lines in

/usr/local/directadmin/customapache/configure.php

Code:
#!/bin/sh
./configure \
	--with-apxs \
	--with-curl \
	--with-curl-dir=/usr/local/lib \
	--with-gd \
	--with-gd-dir=/usr/local \
	--with-gettext \
	--with-jpeg-dir=/usr/local/lib \
	--with-kerberos \
	--with-mcrypt \
	--with-mhash \
	--with-mysql=/usr \
	--with-pear \
	--with-png-dir=/usr/local/lib \
	--with-xml \
	--with-zlib \
	--with-zlib-dir=/usr/local/lib \
	--with-zip \
	--with-openssl \
	--enable-bcmath \
	--enable-calendar \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-sockets \
	--enable-track-vars \
	--enable-mbstring \
	--enable-memory-limit \
	--enable-force-cgi-redirect \
	--enable-fastcgi

i've added only last 2 lines to it
then done
./build php y

and then i'm go to look version "php -v" i see

[root@free]# php -v
PHP 4.4.4 (cli) (built: Jan 11 2007 00:00:20)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator


why not cgi-fastcgi ?

no luck at all, whats wrong are done here ?
 
You'll most probably have to compile it manually rather than via the build program.

To install it without build run this:

make clean

and then

./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit \
--enable-force-cgi-redirect \
--enable-fastcgi

In the folder php-4.4.4

Also try adding this onto the configure.

--disable-cli

FastCGI will not work well if you're using the enhanced template in DA. It'll show up a lot of ugly errors about PHP if you do install it.
 
Back
Top