Php5-mcrypt-php expansion cannot take effect in time?

Source: Internet
Author: User
Use the command to install the apt-getinstallphp5-mcrypt and apt-getinstallphp5-gd; restart apache but the php5-mcrypt can not take effect in time, gd library can take effect in time, do not know why? Then sudophp5enmodmcrypt can take effect. For more information, see php extension. apt-get install php5-mcryptAnd apt-get install php5-gd; Restart apache
But the php5-mcrypt cannot take effect in time, gd library can take effect in time, do not know why?
Then sudo php5enmod mcryptTo take effect, I would like to ask how php extension and php and apache are assisted. sudo php5enmod mcryptWhat is the working principle of this related command?

Reply content:

The command is used to installapt-get install php5-mcryptAndapt-get install php5-gd; Restart apache
But the php5-mcrypt cannot take effect in time, gd library can take effect in time, do not know why?
Thensudo php5enmod mcryptTo take effect, I would like to ask how php extension and php and apache are assisted.sudo php5enmod mcryptWhat is the working principle of this related command?

When a standard installation method is used, some configuration files of each module (each module is independent) are available in/etc/php5, and then in Cli, Fpm, the directory such as Apache2 contains a conf. d directory, which has a soft connection to the configuration of some modules to be used, so that different configuration files can be loaded in different situations, and only one real module configuration file exists.

Sudo php5enmod mcrypt is to establish a soft connection, and does not declare expansion under php. ini.

PHP expansion has no direct relationship with Apache. The relationship between PHP and apache is a module when the Apache module is running, and the relationship between PHP (Cli) and Apache is a program call when the common Cgi is running.

In general, the # in the corresponding configuration file is canceled, such as/etc/php5/conf. d/ext-mcrypt.ini this file content may have been noted by the well number, use the command # Remove, take effect and Dynamic Load 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.