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

后端 未结 2 1704
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条回答
  •  花落未央
    2021-02-05 18:35

    You may have to enable the module. On Ubuntu systems this can most easily be done by linking the ini file that ships with php5-mcrypt into your conf.d for each PHP binary you want to use:

    sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/cli/conf.d/mcrypt.ini
    sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/cgi/conf.d/mcrypt.ini
    

提交回复
热议问题