php5-mcrypt-php extension not effective in time?

Source: Internet
Author: User
The command was installed using the apt-get install php5-mcryptAnd apt-get install php5-gd, and restarted Apache.
But Php5-mcrypt can not take effect in time, GD Library can take effect in time, do not know why?
And then through sudo php5enmod mcryptTo take effect, I would like to ask how PHP extension and PHP and Apache between the assistance. sudo php5enmod mcryptHow does this related command work?

Reply content:

The command was used to install apt-get install php5-mcrypt and restart apt-get install php5-gd Apache.
But Php5-mcrypt can not take effect in time, GD Library can take effect in time, do not know why?
Then through the sudo php5enmod mcrypt ability to take effect, I would like to ask the PHP extension and PHP and Apache how to help. sudo php5enmod mcryptHow does this related command work?

In the use of a more standardized installation method, in the/ETC/PHP5 there will be a number of individual module configuration files (each module alone), and then in the CLI, FPM, Apache2 such a directory will have a CONF.D directory, there are some of the modules to use the configuration of the soft connection, This makes it possible to load different configuration files in different contexts, while the real module configuration file only has one copy.

sudo php5enmod MCrypt is the establishment of a soft connection, not php.ini under the Declaration of expansion.

PHP extension with Apache is not directly related to Apache module runtime PHP and Apache is the relationship between the module, the normal CGI runtime PHP (CLI) and Apache is a program call relationship.

In general, the corresponding configuration file is canceled in the #, such as/etc/php5/conf.d/ext-mcrypt.ini the original content of the file may be a notation comment, use the command after the # removed, effective and dynamically loaded mcrypt.so

  • 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.