Operating System - HP-UX
1830938 Members
1919 Online
110017 Solutions
New Discussion

Apache with mysql+php4 as DSO

 
Keith Lapidus
Occasional Advisor

Apache with mysql+php4 as DSO

I'm installing apache 1.3.22 on HP-UX 11.11 and have MySql 3.23.40 installed. When I compile and install php 4.0.6 as a DSO, that seems to work ok except that apxs complains about the libphp4.sl not being a DSO file. When I rename the file to libphp4.so, apxs installs the file. When I do a configtest with apache, I get a bunch of the following:
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_row (code) from /opt/apache/lib
exec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_field (code) from /opt/apache/l
ibexec/libphp4.so
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: Unresolved external


Any ideas??
2 REPLIES 2
Carlos Sotelo Ibarra_1
Frequent Advisor

Re: Apache with mysql+php4 as DSO

Have you tried keeping a copy of it as .sl too? Sounds silly, but you might have to keep both a .so and a .sl copy of the php file.
Good luck!
A pint of Guiness is worth an ounce of prevention
Keith Lapidus
Occasional Advisor

Re: Apache with mysql+php4 as DSO

Actually, i finally figured it out. As it turns out, not only to you have to copy the .sl file to a .so, but after sifting through many other threads, I had to change a few other things.