php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #3334 Module compilation instructions confusing
Submitted: 2000-01-27 20:48 UTC Modified: 2000-07-03 19:20 UTC
From: donald dot g dot park at iname dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.14 OS: Redhat 6.1
Private report: No CVE-ID: None
 [2000-01-27 20:48 UTC] donald dot g dot park at iname dot com
The INSTALL doc file has a good quick reference for compiling Apache and PHP with static support.
I tried to get it compiled with module support and ran around in circles because the INSTALL doc is not as clear as it could be.
The section that describes the --with-apxs flag makes it sound as if one still needed to use the steps in the static build listed at the very start. Replacing --with-apache with --with-apxs and the going to rebuild apache as the further steps indicate, will give you an apache that doesnt support modules.

how to fix:
1. rename QUICK INSTALL to QUICK INSTALL for Compiled-In PHP module (or statically linked PHP module or whatever)
2. make a new QUICK INSTALL using DSO/Loadable apache modules

All the contents have to say is
untar apache
configure --enable-shared=max ; make; make install

untar php
configure --with-myphp --with-apxs --enable-track-vars
make
make install

and thats it! I did not realize that the php make install with apxs was already putting the loadable php module in the right place. I went back to the apache config/install steps from the QUICK INSTALL section and the new httpd server bombs because its not setup for dynamic loadable modules.
(this is with PHP4b3, the bug form doesn't have an option for PHP4)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-03 19:20 UTC] rasmus at cvs dot php dot net
Right at the top of the INSTALL file it says:
For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.  You should see something like:

Compiled-in modules:
  http_core.c
  mod_so.c

I am not sure how it can be said in any clearer way that you
need an Apache binary with mod_so enabled.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 14 19:00:01 2026 UTC