Call to undefined function mcrypt_decrypt() - even when php5-mcrypt installed

后端 未结 2 1671
Happy的楠姐
Happy的楠姐 2021-02-05 17:55

So I can\'t stop getting the error:

PHP Fatal error:  Call to undefined function mcrypt_decrypt() in 

Even when I have php5_mcrypt installed, I

2条回答
  •  -上瘾入骨i
    2021-02-05 18:48

    Installing is one thing. Enabling is another. Please make sure your /etc/php.ini file contains the following line :

    extension=mcrypt.so
    

    If you can't find your php.ini, create a test.php file containing :

    
    

    Execute it with php test.php | grep ".ini", and you'll find the paths to your ini files. One of them must include the extension= line above.

提交回复
热议问题