Cannot load libphp4.so: No such file or directory
| From: | Brandon Bell | Date: | Sat, 22 Sep 2001 00:14:26 +0000 |
| Subject: | Cannot load libphp4.so: No such file or directory | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-4371@lists.php.net to get a copy of this message | ||
I'm trying to update my s/w to the latest versions and have run into a
problem loading the libphp4.so module into Apache. Apache runs fine if I
don't use PHP. Here is my setup:
OS: AIX 4.3.3
Everything compiled with gcc 2.95.2
Steps to build as follows:
gzip -d -c openssl-0.9.6b.tar.gz | tar xf -
gzip -d -c mod_ssl-2.8.4-1.3.20.tar.gz | tar xf -
gzip -d -c apache_1.3.20.tar.gz | tar xf -
gzip -d -c php-4.0.6.tar.gz | tar xf -
cd openssl-0.9.6b
./config --prefix=/w1/local no-threads
make
cd ../mod_ssl-2.8.4-1.3.20
./configure \
--with-apache=../apache_1.3.20 \
--with-ssl=../openssl-0.9.6b
cd ../apache_1.3.20
setenv SSL_BASE ../openssl-0.9.6b
./configure \
--prefix=/w1/local/apache_1.3.20 \
--sbindir=/w1/local/apache_1.3.20/sbin \
--enable-module=ssl \
--enable-module=most \
--enable-shared=max \
--enable-suexec --suexec-safepath="/bin:/usr/bin" \
--disable-rule=SSL_COMPAT
make
make certificate TYPE=test
su
make install
# now test out apache -- seems to run okay -- shutdown apache -- exit root
account
cd ../php-4.0.6
./configure \
--with-apxs=/w1/local/apache_1.3.20/sbin/apxs \
--with-config-file-path=/w1/local/php/lib \
--with-exec-dir=/w1/local/php/bin \
--with-mysql=/w1/local/mysql \
--with-oracle=/br1/oracle1
make
su
make install
# switch over to apache conf directory and fix httpd.conf in appropriate
places
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# switch over to apache sbin directory and test configuration file
./apachectl configtest
Syntax error on line 240 of /w1/local/apache_1.3.20/conf/httpd.conf:
Cannot load /w1/local/apache_1.3.20/libexec/libphp4.so into server: No
such file or directory
Line 240 is the LoadModule line above.
The permissions and access to this library file look okay to me:
-rwxr-xr-x 1 root system 2019069 Sep 21 15:25
/w1/local/apache_1.3.20/libexec/libphp4.so
I've read at least two other postings that seem extremely similar, but
there are no replies posted to either:
http://marc.theaimsgroup.com/?l=php-install&m=97981160902310&w=2
http://www.phpbuilder.com/forum/read.php3?num=3&id=105272&loc=0&thread=105272
I've also read Jason Ellison's recent posting (2000-09-18) about how to
compile under AIX 4.3.3 and gcc:
http://marc.theaimsgroup.com/?l=php-install&m=100078832410664&w=2
I followed his instructions and they made absolutely no difference.
Perhaps the problem(s) that these instructions fix are further down the
road for me.
Anyway, I'd be grateful if anyone can tell me why the libphp4.so file
isn't being recognized by apache and what I might have to do to get this
to work. Thanks!
_______________________________
Brandon Bell