How to install MCrypt

Source: Internet
Author: User
Tags configuration php mcrypt

    #cd libmcrypt-2.5.8
#./configure
#make
#make Install
Description: Libmcript is installed by default on/usr/local
3. Installing Mhash
#tar-ZXVF mhash-0.9.9.9.tar.gz
#cd mhash-0.9.9.9
#./configure
#make
#make Install
4. Installing MCrypt
#tar-ZXVF mcrypt-2.6.8.tar.gz
#cd mcrypt-2.6.8
#LD_LIBRARY_PATH =/usr/local/lib./configure
#make
#make Install
Description: Because Libmcrypt's link library could not be found when configuring MCrypt, it could not be compiled because the Libmcrypt link library is under the/usr/local/folder.
So when configuring MCrypt, add ld_library_path=/usr/local to import the key library
5. Install PHP
In configuration PHP is to join:
#./configure--with-mcrypt--with-mhash
or through the phpize dynamic addition of PHP, to the corresponding directory of the source code ext/, execute
/usr/bin/phpize
./configure--with-php-config=/usr/bin/php-config
Make
Make install
Then the generated. So file is referenced in the php.ini file and restarted Apache!

How to install MCrypt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.