I am having trouble getting the dynamic module of PHP5 to work with apache 1.3.33.
I first compile apache with the following options:
SSL_BASE=/opt/app/garp/new/openssl ./configure --enable-module=ssl \
--prefix=/opt/app/garp/new/apache --server-uid=garp \
--server-gid=garp --enable-module=so --enable-module=rewrite
And then php with these options:
./configure \
--with-mysqli=/opt/app/garp/app_tars/mysql-standard-4.1.12-pc-linux-gnu-i686/bin/mysql_config \
--with-mysql=/opt/app/garp/app_tars/mysql-standard-4.1.12-pc-linux-gnu-i686 \
--with-apxs=/opt/app/garp/new/apache/bin/apxs \
--with-openssl-dir=/opt/app/garp/new/openssl \
--with-oracle \
--with-oci8 \
--enable-sigchild \
--prefix=/opt/app/garp/new/php \
--with-mime-magic \
--with-kerberos=/usr/kerberos \
--with-imap=/opt/app/garp/app_tars/imap-2004d \
--with-imap-ssl=/opt/app/garp/new/openssl \
--with-xsl \
--with-zip=modules \
--with-zlib=/opt/app/garp/zlib \
--with-zlib-dir=/opt/app/garp/zlib \
--with-zziplib=/opt/app/garp/zziplib \
--without-pic
PHP runs great from the command line - I wrote some test scripts that
log into various databases (mysql/oracle) and have no trouble.
However, when I try to start apache, I get the following error:
Syntax error on line 205 of /opt/app/garp/new/apache/conf/httpd.conf:
Cannot load /opt/app/garp/new/apache/libexec/libphp5.so into server:
/opt/app/garp/new/apache/libexec/libphp5.so: undefined symbol:
mysql_stmt_close
./bin/apachectl start: httpd could not be started
When I run ldd on libphp5.so, I see that it is linked against an old
version of libmysql. Here is the relevant line output by ldd:
libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0x00a6b000)
I need to have an old version of mysql running on the same machine,
that's why I installed the new version into a custom directory.
How can I get libphp5.so to link/include the correct library? Or am I doing something else wrong?
Thanks,
Seth