#22180 [Fbk->Csd]: Apache2.0 : libphp4.so: cannot dynamically load executable
| From: | admin at bestfuture dot org | Date: | Thu, 13 Feb 2003 02:57:28 +0000 |
| Subject: | #22180 [Fbk->Csd]: Apache2.0 : libphp4.so: cannot dynamically load executable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32946@lists.php.net to get a copy of this message | ||
ID: 22180
User updated by: admin@bestfuture.org
Reported By: admin@bestfuture.org
-Status: Feedback
+Status: Closed
Bug Type: Apache2 related
Operating System: Suse
PHP Version: 4.3.0
New Comment:
Closed
Previous Comments:
------------------------------------------------------------------------
[2003-02-12 20:56:45] admin@bestfuture.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-11 21:48:12] sniper@php.net
You should also upgrade your Apache2 to 2.0.44..
------------------------------------------------------------------------
[2003-02-11 21:39:21] sniper@php.net
minor typo in the configure line, it should say '--with-apxs2' of
course..(missing 's' :)
------------------------------------------------------------------------
[2003-02-11 21:38:21] 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 20:53:48] admin@bestfuture.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22180&edit=1