|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
05-10-2010, 09:55 AM | #1 | ||||||||||||||||
Guest
Trả Lời: n/a
|
Hướng dẫn cài đặt và cấu hình mcrpyt on Linux (CentOS)
Hướng dẫn cài đặt và cấu hình mcrpyt on Linux (CentOS)
Site Source: http://mcrypt.sourceforge.net/ Mcrypt is a powerful encryption library containing 22 block algorithms. Specifically, the following algorithms are supported:
Cài Đặt: SSH As root: 1) Install libmcrypt (2.5.x or better) http://mcrypt.hellug.gr/lib/index.html -download and uncompress: tar z -xvf xxx.tar.gz -cd into libmcrypt dir and type: ./configure -when configure is done type: make -when make is done type: make install 2) Add the library dir to /etc/ld.so.conf -edit /etc/ld.so.conf and add: /usr/local/lib -save file and then type the command: ldconfig 3) Update/Install Mhash (0.8.15 or newer) http://mhash.sourceforge.net/ -download and uncompress: tar z -xvf xxx.tar.gz -cd into libmcrypt dir and type: ./configure -when configure is done type: make -when make is done type: make install -when make install is done type: ldconfig 4) Install latest version of mcrypt (2.6.x or better) http://mcrypt.hellug.gr/mcrypt/index.html -download and uncompress: tar z -xvf xxx.tar.gz -cd into mcrypt dir and type: ./configure -when configure is done type: make -when make is done type: make install -when make install is done type: ldconfig 5. Install php-mcrypt enable support for php. requires php-mcrypt and php-mhash packages:
Error
libmcrypt.x86_64 2.5.8-4.el5.centos installed [root@nechi etc]# ldconfig -p | grep libmcrypt.so.4 libmcrypt.so.4 (libc6,x86-64) => /usr/lib64/libmcrypt.so.4 [root@nechi etc]# find / -name libmcrypt.so.4 /usr/lib64/libmcrypt.so.4 [root@nechi etc]# ls -la /usr/lib64/libmcrypt.so.4 lrwxrwxrwx 1 root root 18 Dec 6 00:25 /usr/lib64 /libmcrypt.so.4 -> libmcrypt.so.4.4.8 [root@nechi etc]# yum install libmcrypt-devel
6. Check mcrypt Enabled [root@nechi etc]# php -r "echo phpinfo();" | grep "^mcrypt" mcrypt mcrypt support => enabled mcrypt.algorithms_dir => no value => no value mcrypt.modes_dir => no value => no value [root@nechi etc]# 7) Restart Apache Have a fun! Tham khảo http://www.kelvinwong.ca/2009/12/06/...too-much-hair/ http://www.notesbit.com/index.php/we...recompile-php/ |
||||||||||||||||
|
|