Click to See Complete Forum and Search --> : Can't Load DSO in Apache


Anon
03-28-2001, 09:47 PM
Hey,

I have just compiled and installed Apache 1.3.12 successfully. This works fine. I then compile and install PHP and add the LoadModule and AddModule lines to httdp.conf. Now when I start Apache i get a message saying that Apache cant load the DSO because it might be garbled. I cant figure out whats wrong with it!

Any help is appreciated

Mark

Anon
03-28-2001, 09:48 PM
I should probably add that I am running RH linux 6.2 and that it was PHP 4.0.4pl1

Thanks

Anon
03-29-2001, 12:57 AM
I had the same problem.

I wonder if it is to do with a conflict in the architecture of the RH6.2 Linux install and the PHP source.

Ie, I'm running RH Linux 6.2 with Apache installed from an rpm. mysql installed from the binary tar.gz and PHP4 installed from the source tar.gz too. I get the same message as you.

My underlying system is a P100 overclocked to 133MHz (long reliable as such under both Win NT 4 and RH Linux 6.2).

I'm wondering if the absence of PHP4 rpms for the i386 architecture that this machine offers is a sign that the architecture is the problem. This stops me using the Alvin solution at: http://www.phpbuilder.com/forum/read.php3?num=3&id=104156&thread=104101

Right now I'm trying to install PHP4 again but following (where they seem to fit) Hung's instructions at: http://www.phpbuilder.com/forum/read.php3?num=3&id=104231&thread=104223

Lee

Anon
03-29-2001, 01:25 AM
Since I upgraded a server to RH7, I've had the garbled DSO problem, and tried to solve it by a recompile of PHP-4.0.4 and also 4.0.4pl1. Everything looks good until make install quits:
--------------
Making install in .
make[1]: Entering directory `/home/usr/local/php-4.0.4'
/usr/sbin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=65536
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/usr/local/php-4.0.4'
make: *** [install-recursive] Error 1
(by the way, links exist from /usr to /home/usr . I had to cope with a partition situation)
--------------
So I see that libphp4.so is never created.
The garbled libphp4.so files are, I think, from attempts to use rpms to install various mod_php..rpms from Red Hat.
so far, this has probably cost me 40 hours of getting past several types of errors, but I can't figure this last one out.
Thanks in advance for any ideas.

Anon
03-30-2001, 02:06 AM
# rem out the other references
to php3 ,in /your/apache/conf/httpd.conf
ensure mod_php.so isnt loaded statically
earlier ,
only 1 reference to php in addmodule
and loadmodule is required.
the garble problem is usually
two or more libraries attempting
to occupy the DSO at the same time.

cheers.

Anon
03-30-2001, 11:38 PM
Hey,

I finally got PHP4 working. I decided that PHP4 was more important to me than Apache 1.3.19 so I went back to the original Apache that came with Linux (Apache 1.3.12) and everything is now working fine. Thanks for all the suggestions.

Mark