Home > Article > Backend Development > laravel提示Use of undefined constant MCRYPT_RIJNDAEL_128 ?
Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'
It is normal when started through apache, but this error is reported when started with nginx.
This is viewed under nginx
Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'
It is normal when started through apache, but this error is reported when started with nginx.
This is viewed under nginx
It seems that the mcrypt module is not loaded correctly;
Maybe the php configuration files loaded by nginx and apache are different. After you start it with Nginx;
Write phpinfo(); check whether the path of php.ini is the same as that of apache. Consistent, or directly check whether the following configuration section has an mcrypt configuration section;
According to the found php.ini path, check or configure the mcrypt module to be enabled; then restart the php process;