|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30682 php (cgi) binary does not compile with apxs2 configured
Submitted: 2004-11-04 02:16 UTC Modified: 2004-11-04 08:14 UTC
From: germann at gmx dot de Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.0.2 OS: Linux
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: germann at gmx dot de
New email:
PHP Version: OS:


 [2004-11-04 02:16 UTC] germann at gmx dot de
When I compile PHP with apxs2 for Apache2 the cgi binary won't be build. Even if I try to force it with "--enable-cgi" there is no binary placed in "sapi/cgi/" after executing make.

Reproduce code:
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --with-apxs2=/usr/local/apache/bin/apxs \
  --with-config-file-path=/etc \
  --enable-cgi \
  --enable-force-cgi-redirect \
  --enable-discard-path \
  --enable-safe-mode \
  --enable-memory-limit \
  --enable-versioning \
  --enable-magic-quotes \
  --with-pear \
  --with-openssl=/usr \
  --with-zlib=/usr \

Expected result:
As mentioned in "By default when executing make, both the CGI and CLI are built and placed as sapi/cgi/php and sapi/cli/php respectively, in your PHP source directory."

Actual result:
myhost:/usr/src/php-5.0.2 # ls sapi/cgi/
.  ..  CREDITS  Makefile.frag  README.FastCGI  cgi_main.c  config.w32  config9.m4  getopt.c  libfcgi  php.sym  php_getopt.h


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-04 08:14 UTC]
No bug, you can only compile one SAPI + cli at the same time. You can't both compile CGI and the apache2 SAPI at the same time.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Nov 29 16:01:27 2023 UTC