laravel提示Use of undefined constant MCRYPT_RIJNDAEL_128 ?

WBOY
Release: 2016-07-06 13:53:46
Original
1706 people have browsed it

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;

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template