I have tried building several versions of php (4.06, 4.2.0 and 4.2.3) to run under iPlanet 4.1 on aix 4.3.3. I've followed the directions on Benoit's site carefully and I'm just not getting it to work.
I used the linux tools for aix from the ibm site to build the shared lib.
gcc version 2.9-aix51-020209 (but really, it's listed as the 4.3.3 version and other stuff works)
./configure --prefix=/opt/freeware --with-nsapi=/usr2/netscape/suitespot --disable-xml --enable-shared --enable-libgcc --with-gnu-ld --enable-debug
Was my last configure attempt... If I don't do --enable-shared it will not produce the shared lib in 4.2.x
With the following lines added to object.conf
Init fn="load-modules" shlib="/usr2/netscape/suitespot/bin/libphp4.so" funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
Init fn=php4_init errorString="Failed to initialize PHP!"
Service fn="php4_execute" type="magnus-internal/x-httpd-php"
<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
In the correct places and in start
LD_LIBRARY_PATH=${SERVER_ROOT}/bin/${PRODUCT_NAME}/lib:/opt/freeware/lib:/usr2/n
etscape/suitespot/bin:${LD_LIBRARY_PATH};export LD_LIBRARY_PATH
It blows up on start, no error, just dies.... I traced it down to
the calling of php4_init by trial and error and the use of
./start -shell
./ns-httpd -d /usr2/netscape/suitespot/https-oldbb/config
Segmentation fault(coredump)
If I do change the line in the obj.conf file for the initialization to:
Init fn=php4_init LateInit="yes"
The server starts but just hangs with no errors when I try the "hello.php" test page...
Is there anything anyone could suggest that I could try to get this going??
(the same sequence of steps works fine when using iPlanet on Linux)
Thanks,
Bob
--
Robert Brose
mailto:bob@;jriver.com
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php