MLUG: [UUG/MLUG] mod_php question<<longish>>
[UUG/MLUG] mod_php question<<longish>>
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I am trying to rebuild the Apache module mod_php according to the directions
at redhat.com. 

<Begin paste from redhat:
 First remove mod_php3
     rpm -e mod_php3 <mod_php3 was apparently not installed when I installed
Apache>
     Then get the source rpm and INSTALL it, NOT --rebuild
     rpm -Uvh mod_php3-3.0.5-2.src.rpm
     Then edit the /usr/src/redhat/SPECS/mod_php3.spec file
     In the %build section add the database support you want, and the
     path.
     For MySQL you would add --with-mysql=/usr \
     The %build section will look something like this:
     ./configure --prefix=/usr \
     --with-apxs=/usr/sbin/apxs \
     --with-config-file-path=/usr/lib \
     --enable-debug=no \
     --enable-safe-mode \
     --with-exec-dir=/usr/bin \
     --with-mysql=/usr \
     --with-system-regex
<<mine looks like:
CFLAGS="-fPIC" ./configure --prefix=/usr \
        --with-apxs \
        --with-config-file-path=/etc/httpd \
        --enable-safe-mode \
        --with-exec-dir=/usr/bin \
        --with-mysql=/usr/include/mysql/ \  <this is the location of mysql.h
that the file is looking for, verified this twice>
        --with-system-regex \
        --disable-debug \
        --with-zlib \
        --enable-debugger \
        --enable-magic-quotes \
        --enable-track-vars
>>
     Once this modification is made then build the binary rpm as
     follows:

     rpm -bb /usr/src/redhat/SPECS/mod_php3.spec
<the error that I get is:
configure: error: Invalid MySQL directory - unable to find mysql.h under
/usr/in
clude/mysql/mysql.h
Bad exit status from /var/tmp/rpm-tmp.85379 (%build)>

Can anyone point me at what I'm doing wrong?

TIA
Rick Buford
Chief Clerk
Medical Records - Transcription
DC042.06 / 884-7452
"Is there another word for synonym?"