compiling apache 1.3.14 w/php 4.0.3 (longish)

Dpk dpk@egr.msu.edu
Tue, 28 Nov 2000 13:45:18 -0500


On Tue, Nov 28, 2000 at 12:39:42PM -0500, Mike Rambo wrote:

   Dpk wrote:
   > 
   > On Tue, Nov 28, 2000 at 12:07:21PM -0500, Mike Rambo wrote:
   > 
   >    5 php + apache like this:
   > 
   >    cd to apache
   >    ./configure --prefix=...
   > 
   >    this went ok.
   > 
   >    cd to php
   >    ./configure --prefix=... \
   >                --with-expat... \
   >                --with-myodbc... \
   >                --may have been something else \
   >                --book not in front of me
   > 
   >    this went ok.
   > 
   > You forgot: make, make install.
   > 
   > This installs the libmodphp4.a in the apache source directory and the
   > /usr/local/[lib/include]/php files.
   > 
   > Hope this helps.
   > 
   > Dpk
   > 
   
   Yep, I forgot to include them in my help request.  Unfortunately I
   didn't forget to include them when I actually did the work.  IOW, I
   _did_ make & make install when I compiled php.  libmodphp4.a is in
   src/modules/php4 as it should be and the other header files are
   where it appears they should be but apache doesn't find them when
   it compiles.  How is the compiler supposed to know to look in
   /usr/local/include/php/whatever for all those .h files anyway?  I
   looked through several of the Makefiles but either overlooked those
   instructions, didn't recognize them, or they're not there (if
   they're supposed to be there at all).
   
Try the following for the make command:

env CPPFLAGS="-I /usr/local/include" LDFLAGS="-L /usr/local/lib" make

I have never had to do it this way, could it be that you missed the
following option for the PHP ./configure ?
  
   --with-apache=../apache_1.3.14

Dennis