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