php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65022 fast-cgi doc is potentially confusing
Submitted: 2013-06-13 03:16 UTC Modified: 2020-08-14 09:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: uzimac at da3m0n8t3r dot com Assigned: cmb (profile)
Status: Not a bug Package: Documentation problem
PHP Version: 5.4.16 OS: FreeBSD 10.0-CURRENT
Private report: No CVE-ID: None
 [2013-06-13 03:16 UTC] uzimac at da3m0n8t3r dot com
Description:
------------
two issues, in doc : config options

http://php.net/manual/en/configure.about.php

--enable-fastcgi
If this is enabled, the CGI module will be built with support for FastCGI also. 
Available since PHP 4.3.0
As of PHP 5.3.0 this argument no longer exists and is enabled by --enable-cgi 
instead.

--with-fastcgi
Build PHP as FastCGI application. No longer available as of PHP 4.3.0, instead 
you should use --enable-fastcgi .

--disable-cgi
Disable building CGI version of PHP. Available with PHP 4.3.0.
As of PHP 5.3.0 this argument enables FastCGI which previously had to be enabled 
using --enable-fastcgi.

does not seem to be --enable-fastcgi or --enable-cgi options, but --disable-cgi 
appears to build PHP as a FastCGI.

ALSO

sapi/cgi/README.FastCGI appears to be incorrect. 

it reads:

"Building PHP
------------

You must add '--enable-fastcgi' to the configure command on Linux or
OSX based systems to get fastcgi support in the php-cgi binary.  You
also must not use '--enable-discard-path'."


Seems this should be '--disable-cgi' to enable fastcgi.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-14 09:00 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2020-08-14 09:00 UTC] cmb@php.net
That part of the documentation looks about right.  As of PHP
5.3.0, there is a single executable (php-cgi) which can be used as
CGI and FCGI processor.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC