#扩展php exif
error::Call to undefined function exif_imagetype()
cd /alidata/server/php-5.6.9/ext/exif /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/ /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/php_exif.so vi /usr/local/php/etc/php.ini 查找:extension = 再最后一个extension= 后面添加上extension = “exif.so”
#扩展php redis
cd "/alidata/server/php-5.6.9/ext" git clone https://github.com/phpredis/phpredis.git redis cd redis/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install ll /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226 vi /usr/local/php/etc/php.ini查找:extension = 再最后一个extension= 后面添加上extension = “redis.so”
修改完后都要重启php服务(php以fpm方式启动);
其它方式重启nginx或apache
打赏
微信扫一扫,打赏作者吧~