compiling apache 1.3.14 w/php 4.0.3 (longish)

Mike Rambo mrambo@lsd.k12.mi.us
Tue, 28 Nov 2000 12:39:42 -0500


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).

>
>    cd to apache
>    ./configure --prefix=... \
>                --activate-module=src/modules/php4/libmodphp4.a
> 
>    This part goes ok
> 
>    make
> 
>    after a couple of minutes it bombs complaining it
>    cannot find several files.  All of the files in
>    question have been in:
>    /usr/local/include/php/main/
>    /usr/local/include/php/Zend/
>    /usr/local/include/php/ext/standard/
>    but it doesn't find them.  For one thing it appeared
>    to being looking in src/modules/php instead of ./php4
>    so I made a php symlink to php4.  Don't really know if
>    that helped or not.  Next I actually copied the files
>    (all of them are header files - php.h Zend.h SAPI.h etc)
>    to src/modules/php4 which allowed me to get a little further
>    but in the end it still bombs looking for php resources.
> 
>    Does anyone have any idea what mistake I've made.
> 
>    The Apache FAQ and usenet group archive didn't have
>    anything regarding this problem.
> 
>    Oh, this particular machine runs RH6.2 if it matters.
> 
>    Many Thanks.

-- 
Mike Rambo
mrambo@lsd.k12.mi.us