|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
35 - 7 = ?
Subscribe to this entry?

 [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: Mon Dec 04 12:01:27 2023 UTC