Home  >  Article  >  Backend Development  >  laravel提示Use of undefined constant MCRYPT_RIJNDAEL_128 ?

laravel提示Use of undefined constant MCRYPT_RIJNDAEL_128 ?

WBOY
WBOYOriginal
2016-07-06 13:53:461707browse

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.
laravel提示Use of undefined constant MCRYPT_RIJNDAEL_128 ?

This is viewed under nginx

Reply content:

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.
laravel提示Use of undefined constant MCRYPT_RIJNDAEL_128 ?

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;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn