安装环境是centos6.2+php5.3.28,php已编译过。 1. 如果发现exif_imagetype调用导致fatal error 那么检查exif扩展有没有安装,扩展的动态安装方法是使用phpize(php install zend extension) cd /root/php-5.3.28/ext/@extension-name@phpize (this command
安装环境是centos6.2+php5.3.28,php已编译过。
1. 如果发现exif_imagetype调用导致fatal error
那么检查exif扩展有没有安装,扩展的动态安装方法是使用phpize(php install zend extension)
cd /root/php-5.3.28/ext/@extension-name@ phpize (this command will generate compile configure file 4 the module) ./configure --with-php-config=@php-config-path@ make && make install (@extension@.so will be installed under extension dir:@php-5.3.28-path@/lib/php/extensions/no-debug-non-zts-20090626/)
extension=@extension-name@.so
立即学习“PHP免费学习笔记(深入)”;
2.如果是imagecreatefromjpeg导致fatal error
那么检查gd扩展有没有安装,方法同上
重启httpd服务后,检查phpinfo的信息,确认png/gif/jpeg都得到支持
如果只有PNG/GIF Support,而没有JPEG Support那一项,那意味着libjpeg没有被编译进GD2.1里面去,
首先安装jpeg:
tar zxvf jpegsrc.v8d.tar.gz cd jpeg-8d/ ./configure --prefix=/usr/local/jpeg --enable-shared make && make install
cd ../gd phpize ./configure --with-jpeg-dir=/usr/local/jpeg --with-php-config=@php-config-path@ make clean make && make install
立即学习“PHP免费学习笔记(深入)”;
重启httpd服务即可。
立即学习“PHP免费学习笔记(深入)”;
by iefreer
立即学习“PHP免费学习笔记(深入)”;
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号