I recently tried to add mcrypt and mhash extensions for PHP4. In the PHP source directory, I did:
make distclean
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mhash=../mhash --with-mcrypt=../mcrypt --with-imap=../imap --with-ldap=../openldap --with-mysql --with-zlib --with-xml --enable-track-vars
make
make install
The configure parameters were exactly the same as the last compilation plus the mhash and mcrypt parameters. After I did this, my webserver just quit running; I got DNS and server-not-found errors.
Then I compiled apache from scratch (the same as I had last time) and compiled PHP and other modules in with apxs (the same as I had last time).
The error log had stuff similar to:
"PHP Warning: Unable to load dynamic library './mysql.so' - ./mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0"
I still get the same problem; actually, when I run apache like this:
/usr/local/apache/bin/apachectl start
It tells me it starts, but it really doesn't; I have to look in the error log to see what the problem is.
Anyone have any idea what's going on? I'm somewhat of a newbie (1 year or so) at Linux. I can't debug this well enough to fix it.
Thanks.