Click to See Complete Forum and Search --> : Problems loading libphp4.so with Apache after recompiling


NickFearn
05-14-2003, 07:36 AM
Hi

I am trying to run php4.2.2 with Apache2.0.45 on YDL3.0. Both apache and PHP compile without error and apache runs OK without PHP. When trying to load PHP the following error occurs:

Cannot load /usr/modules/libphp4.so into server: /usr/modules/libphp4.so: undefined symbol: php_apache_register_module

PHP is compiled (without error) with the following options:

[root@linux3d root]# ./configure --prefix=/usr --enable-magic-quotes --enable-safe-mode --enable-track-vars --enable-trans-sid --enable-wddx --with-pgsql=shared,/usr --with-ldap=shared --with-kerberos=/usr/kerberos --with-unixODBC=shared --with-java --with-apxs2 --with-xml=shared --with-dom --with-zlib-dir

Any help appreciated.

Thanks Nick

largo
05-17-2003, 02:32 AM
hmm, I think this is a bug which was sorted in 4.3.0 or the latest snapshot around the time.

You may want to try 4.3.1 and give that a shot with the same config line Nick.

hths.

largo
05-17-2003, 02:39 AM
Sorry, I just read the subject line to your post -- keyword being: "recompile".

I would go over the install log file generated by php and scan for apx2 to verify everything linked correctly.

No harm in trying 4.3.1 though... I did see some newgroup messages which hinted towards similar issues with 4.2.2 and apache 2.x

hths.

tsinka
05-17-2003, 04:02 AM
Hi,

if you still have problems with compiling php it might help to replace

--with-apxs2

by e.g.

--with-apxs2=/usr/sbin/apxs2

By specifying the complete path to apxs2 you ensure that configure finds the correct apxs.