PHP 3.0.6

PHP 3.0.6

Post by Paul Co » Sun, 07 Feb 1999 04:00:00



Has any had any success compiling this as an Apache 1.3.4 module under
LinuxPPC R4? I can get it to compile and install, but when I try to 'make'
Apache, I get a bunch of errors. I have beat my head against this for a
couple of days and am getting a wee bit frustrated.

Thanks in advance for the help.

Paul

 
 
 

PHP 3.0.6

Post by m.. » Sun, 07 Feb 1999 04:00:00


yes, i've gotten it to work. i chose to make mine as a DSO module, but i had
to do some dirty work to get it to go. :)

first i compiled apache 1.3.4 with DSO support with the '--enable-module=so'.
here is my configure script:

./configure     --prefix=/usr/local/apache              \
                --enable-suexec                         \
                        --suexec-caller=httpd           \
                        --suexec-userdir=public_html    \
                --enable-rule=WANTHSREGEX               \
                --enable-module=info                    \
                --enable-module=status                  \
                --enable-module=proxy                   \
                --enable-module=so

i then proceeded to install it.

then i configured php3 with the following:

./configure     --with-apxs=/usr/local/apache/bin/apxs  \
                --with-config-file-path=/usr/local/lib

then for some reason the regex support is getting skipped during compile, so i
cd'ed into regex and typed 'make', then cd'ed back out and typed make again
at the main src level.

now, this last make will fail IIRC... or maybe it makes correctly but then it
bombed out when i tried to load into apache? i can't remember exactly.
so i let it fail, then i deleted the resulting libphp3.so, and did this:

ld -Bshareable -o libphp3.so mod_php3.o libmodphp3-so.a regex/libregex.a -lc -lm
 -lcrypt -ldb -lgdbm -ldl -lcrypt -lnsl -lresolv

the important part to the ld statement above that i had to figure out was the
inclusion of the '-lresolv'. i think that without this, when i tried to load
into apache i'd get an error about "unresolved symbols: __dn_expand"

after the ld statement above, just copy the libphp3.so into
/usr/local/apache/libexec and then add a line like this to the top of your
httpd.conf (minus the roaming_module obviously :):

#++
# Load DSO Modules
#--
LoadModule roaming_module     libexec/mod_roaming.so
LoadModule php3_module        libexec/libphp3.so

give this a try... if nothing else, i could just give you my libphp3.so.

        matt

: Has any had any success compiling this as an Apache 1.3.4 module under
: LinuxPPC R4? I can get it to compile and install, but when I try to 'make'
: Apache, I get a bunch of errors. I have beat my head against this for a
: couple of days and am getting a wee bit frustrated.

: Thanks in advance for the help.

: Paul

--

----------------------------------
the SYSTEM owns you

SYSTEM, n.:
   1: a regular union of principles or parts forming one entire thing.
   2: the economic/capitalistic entity that exploits *your* life.
   3: that strange attractor in your perception of the world that you
      have dubbed as, "they".


                        http://www.mw.driver8.org/