FastCGI sent in stderr: “PHP message: PHP Fatal error: Call to undefined function imagecreatefromjpeg()错误解决办法 – 21运维
通知: .-...

FastCGI sent in stderr: “PHP message: PHP Fatal error: Call to undefined function imagecreatefromjpeg()错误解决办法

linux 21运维 9196浏览 0评论

原因:gd不支持jpeg,安装jpeg支持JPEG Support即可。
安装方法:
1、找到php 源码目录安装扩展。或单独自己安装,这里使用php源码原始目录。

cd ext/gd 
/usr/local/php/bin/phpize 
./configure -–with-php-config=/usr/local/php/bin/php-config –-with-jpeg-dir –-with-freetype-dir
make && make install

重启web。重新查看phpinfo支持以后即可。

6

转载请注明:21运维 » FastCGI sent in stderr: “PHP message: PHP Fatal error: Call to undefined function imagecreatefromjpeg()错误解决办法

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址