php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22180 Apache2.0 : libphp4.so: cannot dynamically load executable
Submitted: 2003-02-11 20:53 UTC Modified: 2003-02-12 21:26 UTC
From: admin at bestfuture dot org Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.0 OS: Suse
Private report: No CVE-ID: None
 [2003-02-11 20:53 UTC] admin at bestfuture dot org
Installing PHP 4.3.0 on httpd 2.0.40.

Using php4-200302091030 snapshot.

Configuring PHP4 :
./configure --with-zlibs=/usr --with-xml --enable-shared=all --with-mysql=/usr --with-apx2=/usr/local/apache2/bin/apxs --with-apache2=/usr/local/apache2 --enable-debug

Config.log : http://www.bestfuture.org/php_config.log

Note :  to create libs/libphp4.so I have to run "make libs/libphp4.bundle" ("make" does not create it for some reason)

Installing Apache2 : 
./configure --enable-ssl --enable-so  --enable-modules=most

/usr/local/apache2/conf/httpd.conf contains :
LoadModule php4_module        /usr/local/apache2/modules/libphp4.so

Run : 
/usr/local/apache2/bin/apachectl -f /usr/local/apache2/conf/httpd.conf -k graceful

Result : Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: cannot dynamically load executable

ldd -d libs/libphp4.so                                                     libmysqlclient.so.10 => /usr/lib/libmysqlclient.so.10 (0x40018000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40048000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x4007a000)
        libm.so.6 => /lib/libm.so.6 (0x4008b000)
        libdl.so.2 => /lib/libdl.so.2 (0x400ae000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x400b1000)
        libc.so.6 => /lib/libc.so.6 (0x400c6000)
        libz.so.1 => /lib/libz.so.1 (0x401e6000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


What am I doing wrong ?
What else do I need to send so you guys would be able to help me ?
Have already done a huge research on the Internet (google, bugs.php.net, other php sites including lots of confs).

Thanks in advance.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-11 21:38 UTC] sniper@php.net
First of all, use correct configure line:

# rm config.cache
# ./configure --with-zlib=/usr --with-xml --with-mysql=/usr --with-apx2=/usr/local/apache2/bin/apxs --enable-debug
# make clean
# make
# make install

And 'make libs/libphp4.bundle' is NOT meant for Linux,
it's for MacosX only!

Try the above procdure and if that fails to install
the libphp4.so, we need to figure out why.
(get the latest STABLE snapshot first!)

 [2003-02-11 21:39 UTC] sniper@php.net
minor typo in the configure line, it should say '--with-apxs2' of course..(missing 's' :)

 [2003-02-11 21:48 UTC] sniper@php.net
You should also upgrade your Apache2 to 2.0.44..

 [2003-02-12 20:56 UTC] admin at bestfuture dot org
Okay, I took php4-200302120430 & Apache2 2.0.44,
made the correct config (added a couple needed things, in fact) :
./configure --with-zlib=/usr --with-xml --with-mysql=/usr --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug --with-gettext --with-imap --enable-ftp --with-imap-ssl

... and VIVA - it works properly.

My assumption why I've got the issue and why it's resolved : either the wrong config string (zlibs instead of zlib) or the new PHP build.

In any case, Sniper, a million thanks :-))
 [2003-02-12 20:57 UTC] admin at bestfuture dot org
Closed
 [2003-02-12 21:26 UTC] sniper@php.net
Not PHP bug..I had same problem with Apache 2.0.40 myself..
Upgrading to 2.0.44 fixed it.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 06:01:34 2024 UTC