我收到了这个错误
Call to undefined function imagecreatefromjpeg()
阅读后我需要重新编译PHP
- ./configure --with-jpeg-dir=/usr/lib OR any other directory which contains the BINARY library of libjpeg
但是什么目录,是否有我需要启用的模块…
解决方法:
sudo apt-get install php5-gd
/etc/init.d/apache2 restart