我想在我的ubuntu服务器上安装Apache2,PHP5和MysqL时启用GD.
我安装了PHP5-gd:
apt-get install PHP5-gd
当我运行PHP -i时,我得到:
gd GD Support => enabled GD Version => 2.0 FreeType Support => enabled FreeType Linkage => with freetype FreeType Version => 2.4.8 T1Lib Support => enabled GIF Read Support => enabled GIF Create Support => enabled JPEG Support => enabled libJPEG Version => unknown PNG Support => enabled libPNG Version => 1.2.46 WBMP Support => enabled Directive => Local Value => Master Value gd.jpeg_ignore_warning => 0 => 0
但它没有出现在PHPinfo()中;
我重启了服务器四次,我试图重启Apache2四百万次.
有谁知道如何解决这个问题?
看起来你的服务器上没有安装libjpeg62.
原文链接:https://www.f2er.com/ubuntu/347600.html安装libjpeg62并重启Apache2.
sudo apt-get install libjpeg62