How can I enable php-mcrypt?

Source: Internet
Author: User
Tags mcrypt
Php-mcrypt is installed on centos7, And the enable command is: {code...} on the Internet ...} problem: 1. This command is useless. The above command is php5enmod. It must be related to php5. It is useless to change it to php7enmod because php7 is installed. 2. Do I need to start this item separately? Php-mcrypt is installed on centos7, And the enable command is displayed on the Internet:

# Php5enmod mcrypt

Problem:
1. This command is useless. The above command is php5enmod. It must be related to php5. It is useless to replace php7enmod with php7.
2. Do I need to start this item separately?

Reply content:

Php-mcrypt is installed on centos7, And the enable command is displayed on the Internet:

# Php5enmod mcrypt

Problem:
1. This command is useless. The above command is php5enmod. It must be related to php5. It is useless to replace php7enmod with php7.
2. Do I need to start this item separately?

.. You need to find the. dll dynamic library and put it in the ext extension folder, and then enable the configuration in php. ini. add this item.

The upstairs is not correct. Your environment is Linux and should be used. SoFile,DllIt is used by the wins platform and needs to be installedMcryptExtension, first you need to find the mcrypt. so file after installation, and then findExtensionAdd the following content:

Extension = path/mcrypt. so

Restart your web server. If you are using php-fpm, restart php-fpm.

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.