ID:               48926
 User updated by:  abel dot martin dot ruiz at gmail dot com
 Reported By:      abel dot martin dot ruiz at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: RHEL 5
 PHP Version:      5.2.10
 New Comment:

I didn't do a "make clean", true. The line was this:

./configure --enable-bcmath  --enable-dba    --with-gd  --with-ldap 
--enable-mbstring   --with-mcrypt=/usr/local/lib  --with-mysql 
--with-unixODBC=/usr --with-pear  --with-snmp --enable-zip 
--with-openssl --with-pdo-mysql --with-mhash --enable-soap --with-curl
--enable-ftp  --enable-fastcgi

I configured the sources from a fresh untarred tarball with the line
above and I got fcgi support:
PHP 5.2.10 (cgi-fcgi) (built: Jul 16 2009 08:31:45)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Another thing I noticed (done with newly untarred sources, again) is
that php-cgi doesn't get built if I enable mod_php with
--with-apxs2=/usr/sbin/apxs before --enable-fastcgi. Not sure if both
options are mutually exclusive). This was the line:
./configure --enable-bcmath  --enable-dba    --with-gd  --with-ldap 
--enable-mbstring   --with-mcrypt=/usr/local/lib  --with-mysql 
--with-unixODBC=/usr --with-pear  --with-snmp --enable-zip 
--with-openssl --with-pdo-mysql --with-mhash --enable-soap --with-curl
--enable-ftp --with-apxs2=/usr/sbin/apxs --enable-fastcgi

Thanks for your quick reply!


Previous Comments:
------------------------------------------------------------------------

[2009-07-15 16:03:50] [email protected]

What was the full configure line? Did you do it on clean sources where
configure hadn't been run before? Where there any warnings about unknown
options after configure? "make clean" ?

------------------------------------------------------------------------

[2009-07-15 13:01:18] abel dot martin dot ruiz at gmail dot com

Description:
------------
Fastcgi support isn't enabled even though configure is invoked with
option --enable-fastcgi.

When running ./sapi/cgi/php-cgi -v the ouput is:
PHP 5.2.10 (cgi) (built: Jul 15 2009 08:28:33)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Note the (cgi) instead of the expected (cgi-fcgi).



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48926&edit=1

Reply via email to