php升级完缺少ssh2,svn扩展
2017-12-19 21:05
162 查看
在给php进行升级完毕之后,使用 php-v 出现如下错误警告:
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: svn: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
解决方法:这是因为升级完php后,出现缺少php的扩展库
imagick: yum -y install php56w-pecl-imagick-devel.x86_64 php56w-pecl-imagick.x86_64
ssh2:使用pecl库进行安装 pecl install ssh2
可参考:http://www.lnmp.cn/install-ssh2-extension-under-php-7.1.html
svn:安装svn的扩展 参考:http://www.linuxdiyf.com/linux/13948.html
wget http://pecl.php.net/get/svn-1.0.2.tgz
tar zxf svn-1.0.2.tgz
cd svn-1.0.2/
若是yum安装的php直接输入phpize,若是源码安装运行php安装的目录/usr/local/php56/bin/phpize
./configure --with-php-config=/usr/bin/php-config
nake && make install
完后再次运行php -v 进行查看发现警告已经不存在!
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: svn: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
解决方法:这是因为升级完php后,出现缺少php的扩展库
imagick: yum -y install php56w-pecl-imagick-devel.x86_64 php56w-pecl-imagick.x86_64
ssh2:使用pecl库进行安装 pecl install ssh2
可参考:http://www.lnmp.cn/install-ssh2-extension-under-php-7.1.html
svn:安装svn的扩展 参考:http://www.linuxdiyf.com/linux/13948.html
wget http://pecl.php.net/get/svn-1.0.2.tgz
tar zxf svn-1.0.2.tgz
cd svn-1.0.2/
若是yum安装的php直接输入phpize,若是源码安装运行php安装的目录/usr/local/php56/bin/phpize
./configure --with-php-config=/usr/bin/php-config
nake && make install
完后再次运行php -v 进行查看发现警告已经不存在!
相关文章推荐
- 缺少 mysqli 扩展。请检查 PHP 配置。
- MongoDB从2.4.9升级到2.6.0记录及PHP的mongo扩展从1.4.5升级到1.5.1
- 打开进入phpmyadmin时可能会报这样的一个错误, 缺少 mysqli 扩展。请检查 PHP 配置。
- 缺少 mcrypt 扩展。请检查 PHP 配置。
- PHP的SSH2扩展的安装
- centos 下为PHP添加svn扩展
- 升级PHP扩展—redis
- OS X Yosemite 10.10. 自带PHP环境gd库扩展缺少freetype 解决办法
- 缺少 mcrypt 扩展。请检查 PHP 配置。(phpmyadmin)
- ubuntu phpmyadmin 错误提示: 缺少 mcrypt 扩展,请检查 php 配置
- windows7下安装php的php-ssh2扩展教程
- linux下php扩展ssh2的详解
- Mac系统升级到10.9(mavericks)时安装php扩展问题解决
- php安装ssh2扩展控制linux,模拟阿里云web控制台
- 缺少 mcrypt 扩展。请检查 PHP 配置。
- 解决Mac OS X 自带PHP环境gd库扩展缺少freetype的问题
- 将PHP C++扩展从php5升级到php7
- windows7下安装php的php-ssh2扩展教程
- 配置phpMyAdmin 登陆时提示:“缺少 mysqli 扩展。请检查 PHP 配置
- ubuntu: 缺少 mcrypt 扩展,请检查 php 配置