Web Hosting Talk







View Full Version : Tried to add mcrypt, now having problems adding ming/mcrypt/gd/imap


abmad
11-23-2002, 06:58 PM
Hello,

I tried to use /script/easyapache to recompile php with mcrypt support and I think I screwed up something in the process.

Before I began I did a php -m, which gave me the following:
xml
standard
sockets
session
posix
pcre
mysql
ming
imap
gd
ftp
ctype
calendar
bcmath
zlib


Then I ran the easyapache script and chose option 2 - Basic install with mcrypt. Upon completion of the compile steps, a php -m gave me:
xml
standard
sockets
session
posix
pcre
mysql
mcrypt
ftp
ctype
calendar
bcmath
zlib

I now had mcrypt support but no ming/imag/gd!

Then I ran the script again and chose option 5 Advanced
and then chose:
* User bandwidth leech protection
* Bytes logging Module
* Frontpage Module
* Raise HARD_SERVER_LIMIT
* Rewrite Module
* SSL Module
* suEXEC Module

also selected
PHP Modules --> and choose all the defaults plus mcrypt/ming/gd (and any other that were there b4 I began)

This time upon completion I get this error.

"Sorry, I was not able to diagnose which libmcrypt version you have installed" and then the compile process stops and now php -m shows:
xml
standard
sockets
session
posix
pcre
mysql
ftp
ctype
calendar
bcmath
zlib

And no matter what I do I keep getting errors and end up back here.

I've searched google, did an extensive search here, cpanel, and php.net.
But nothing I have tried from these sites work. (even have my help desk stumped and they are touted as some of the best on this site) I'm at my wits end plz help.

/abmad

Noldar
11-23-2002, 07:19 PM
What build of WHM/Cpanel do you have? I had that same problem, but after I updated to Build 29 it worked fine.

Richard

Techark
11-23-2002, 07:20 PM
Did you run /scripts/fixheaders before the compile?

There are some PHP modules that are not compatible with each other, I just did a recompile on 2 servers last night and here are the modules I have selected that work.

./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd=../gd-2.0.4' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-mcrypt' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'

IF that does not work you can always do a easy apache and choose beginner to get Apache up and then go back and recompile PHP separate adding the modules you want.

abmad
11-25-2002, 11:26 PM
Thanks guys for the input. Another guy at my hoster's helpdesk got it working. He hasn't responded to my request for a play by play, but here's his entries from the .bash_history:

/scripts/easyapache
locate mcrypt
ls /usr/local/lib/
rm -rf /usr/bin/libmcrypt-config /usr/lib/libmcrypt* /usr/include/mcrypt.h
cd /usr/local/src
ls
rm -rf *
lynx layer1.cpanel.net
chmod 755 buildapache.sea
./buildapache.sea
cd /usr/local/src
rm -rf buildapache
./buildapache.sea
php -m
/usr/sbin/httpd configrest
/usr/sbin/httpd configtest
/usr/sbin/httpd stop
/usr/sbin/httpd startssl

abmad
11-25-2002, 11:27 PM
the funny thing is I swear I did all of this!!