# wget http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.bz2/download
# tar -xzf libmcrypt-2.5.8.tar.gz
# cd libmcrypt-2.5.8
# ./configure --disable-posix-threads --enable-dynamic-loading
# make && make install
# ldconfig
# cd ..
installing mhash
# wget http://sourceforge.net/projects/mhash/files/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz/download
# tar -xzf mhash-0.9.9.9.tar.gz
# cd mhash-0.9.9.9
# ./configure
# make && make install
# ldconfig
# cd ..
installing mcrypt
# wget http://sourceforge.net/projects/mcrypt/files/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz/download
# tar -xzf mcrypt-2.6.8.tar.gz
# cd mcrypt-2.6.8
# ./configure
# make && make install
# ldconfig
# cd ..
Recompile php
Before you configure the php sourcecode you must remember the previous php configuration right ? if not you can use php -i |grep configure to see the previous configuration
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
> --with-mysql=/usr/local/mysql \
> '--with-gd=/usr/local \
> --with-jpeg-dir=/usr/local/lib \
> --with-zlib-dir=/usr/local \
> --enable-ftp \
> --with-png-dir=/usr/local/lib \
> --with-freetype-dir=/usr/local \
> --with-curl=/usr/local \
> --with-imap=/usr/local/imap-2007b \
> --with-imap-ssl=/usr/local/ssl \
> --enable-mbstring \
> --with-mcrypt=/usr/local/bin/mcrypt
# make && make instal
# vi /usr/local/lib/php.ini
; change this line
include_path = ".::/usr/local/lib/php"
cek
# php -i |grep ^mcrypt
mcrypt
mcrypt support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value
2 comments:
You're welcome.. :)
Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
Post a Comment