错误:

NOTICE: PHP message: PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20121212

当服务器中安装了2个以上的php环境时会出现以上错误,这是由于phpize编译的版本不一致

 

所以安装扩展的时候 一定要

/usr/local/php/bin/phpize #写全phpize的路径
./configure --with-php-config=/usr/local/php/bin/php-config  #配置时 要将php-config的路径附上
make && make install

这样就不会出现以上错误了

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-10-26
  • 2021-11-10
  • 2021-11-22
  • 2021-10-06
  • 2021-06-05
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2021-05-25
  • 2021-06-15
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
相关资源
相似解决方案