|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38468 --enable-fastcgi compiles as cgi w/o fcgi-support
Submitted: 2006-08-16 01:32 UTC Modified: 2006-08-16 14:06 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: cc at cgerharz dot de Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.1.4 OS: Debian 3.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: cc at cgerharz dot de
New email:
PHP Version: OS:


 [2006-08-16 01:32 UTC] cc at cgerharz dot de

after compiling PHP with --enable-fastcgi option, it has only cgi support, the fastcgi extension is missing.

See below for additional config parameters.

Reproduce code:
#! /bin/sh
# Created by configure

'./configure' \
'--enable-memory-limit' \
'--enable-force-cgi-redirect' \
'--enable-track-vars' \
'--enable-fastcgi' \
'--with-pcre-regex' \
'--with-mysql=/usr' \
'--with-sqlite' \
'--prefix=/usr/local/php5-fcgi' \
'--enable-gd-ingstrttf' \
'--enable-gd-native-ttf' \
'--enable-magic-quotes' \
'--with-jpeg-dir=/usr/lib' \
'--with-jpg-dir=/usr/lib' \
'--with-png-dir=/usr/lib' \
'--with-zlib' \
'--with-freetype-dir=/usr/lib' \
'--with-gd' \
'--enable-freetype' \
'--with-imap' \
'--with-gif-dir=/usr/lib' \
'--with-kerberos' \
'--with-imap-ssl' \
'--without-mm' \
'--enable-mbstring' \
'--enable-sockets' \
'--with-gettext' \
'--with-mcrypt' \
'--with-iconv' \
'--with-curl' \


make install

Expected result:
PHP binary should have fcgi support; make & php -v should show up this:

Installing PHP SAPI module:       cgi-fcgi

Actual result:
PHP binary is only cgi binary without fcgi extension; make & php -v actually show up this:

Installing PHP SAPI module:       cgi


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-16 08:14 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-08-16 13:56 UTC] cc at cgerharz dot de
Same for that snapshot.
 [2006-08-16 14:06 UTC]
./sapi/cgi/php -v
PHP 5.2.0RC2-dev (cgi-fcgi) (built: Aug 16 2006 18:05:06) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

>make & php -v 
This is definitely wrong.

>Installing PHP SAPI module:       cgi
Right, it's still CGI, even if it's actually fastCGI.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 20:01:28 2019 UTC