Welcome! Log In Create A New Profile

Advanced

I know this is "nit picking" but...

Posted by Jim Ohlstein 
I know this is "nit picking" but...
July 16, 2009 12:43AM
php 5.3.0 with the php-fpm patch will not compile without "--enable-fastcgi" being specified in the ./configure command. My understanding is that this is no longer an option as php 5.3.0 cannot be compiled *without* fastcgi support and so "--enable-fastcgi" should not be required.

--
Jim Ohlstein
Re: I know this is "nit picking" but...
July 16, 2009 01:34AM
well yes, it is nit picking - of course, if you give it the other fpm
options at configure time those are invalid too... so just configure
--enable-fastcgi a requisite for compilation of php-fpm :)

there -is- a standalone version of (php-)fpm in the works. it still
requires compilation against php sources, but it does not alter php
and is no longer a patch. means a lot easier to distribute as well
(can compile against a vanilla 5.2.10 tree for example and then
distribute for your specific distribution/arch)

more details on that soon though.

On Wed, Jul 15, 2009 at 9:43 PM, Jim Ohlstein<nginx-forum@nginx.us> wrote:
>
> php 5.3.0 with the php-fpm patch will not compile without "--enable-fastcgi" being specified in the ./configure command. My understanding is that this is no longer an option as php 5.3.0 cannot be compiled *without* fastcgi support and so "--enable-fastcgi" should not be required.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,4090,4090#msg-4090
>
>
Re: I know this is "nit picking" but...
July 16, 2009 01:53AM
mike Wrote:
-------------------------------------------------------
> well yes, it is nit picking - of course, if you
> give it the other fpm
> options at configure time those are invalid too...

That's incorrect. Run

# ./configure --enable-fpm --enable-fastcgi

on a patched php-5.3.0 and it will kick out only "--enable-fastcgi" as an unrecognized option.

This is what I get from that command:

Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating sapi/cgi/fpm/fpm_autoconf.h
creating sapi/cgi/fpm/php-fpm.conf
creating sapi/cgi/fpm/php-fpm
creating main/php_config.h
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+

Thank you for using PHP.

Notice: Following unknown configure options were used:

--enable-fastcgi

Check './configure --help' for available options



> so just configure
> --enable-fastcgi a requisite for compilation of
> php-fpm :)

This is an unprofessional way to handle this. The problem is, in this case, that ./configure works fine without the "--enable-fastcgi" option but then compilation fails and it's not immediately obvious as to why that is. Those of us who actually read the documentation *know* that "--enable-fastcgi" is no longer a valid option as of 5.3.0. It may not be high priority but it's a bug and it should be fixed.

>
> there -is- a standalone version of (php-)fpm in
> the works. it still
> requires compilation against php sources, but it
> does not alter php
> and is no longer a patch. means a lot easier to
> distribute as well
> (can compile against a vanilla 5.2.10 tree for
> example and then
> distribute for your specific distribution/arch)
>
> more details on that soon though.
>
> On Wed, Jul 15, 2009 at 9:43 PM, Jim Ohlstein
> wrote:
> >
> > php 5.3.0 with the php-fpm patch will not
> compile without "--enable-fastcgi" being specified
> in the ./configure command. My understanding is
> that this is no longer an option as php 5.3.0
> cannot be compiled *without* fastcgi support and
> so "--enable-fastcgi" should not be required.
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?3,4090,4090#msg-40
> 90
> >
> >

--
Jim Ohlstein
Re: I know this is "nit picking" but...
July 16, 2009 02:06AM
Wed, Jul 15, 2009 at 10:53 PM, Jim Ohlstein<nginx-forum@nginx.us> wrote:

> This is an unprofessional way to handle this. The problem is, in this case, that ./configure works fine without the "--enable-fastcgi" option but then compilation fails and it's not immediately obvious as to why that is. Those of us who actually read the documentation *know* that "--enable-fastcgi" is no longer a valid option as of 5.3.0. It may not be high priority but it's a bug and it should be fixed.

Oops. You're right. I looked at my 5.3.0 build script and I did remove
--enable-fastcgi. I was so focused on messing with the new builds I
forgot about my 5.3.0 changes.

Isn't this just a documentation issue? I tried updating it a little bit.
http://php-fpm.org/Documentation#Howto

patching PHP-FPM and such doesn't -require- you to give it those
options, so I wouldn't consider this bug, just a documentation issue.
I am open to any disagreements though (and if anyone wants to take
more effort editing that page :))
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready