错误:
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
这样就不会出现以上错误了
 
                     
                    
                 
                    
                 

 
         
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号