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-mcrypt
And
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 mcrypt
To take effect, I would like to ask how php extension and php and apache are assisted.
sudo php5enmod mcrypt
What is the working principle of this related command?
Reply content:
The command is used to installapt-get install php5-mcrypt
Andapt-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 mcrypt
To take effect, I would like to ask how php extension and php and apache are assisted.sudo php5enmod mcrypt
What 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