If you are getting following error message when uploading image via any script
Fatal error: Call to undefined function imagecreatefromjpeg() in /home/user/
It generally occurs if your server do not have GD Library installed.
Resolution for cPanel Server
Log into WHM and install GD library by compiling EasyApache.
WHM Home >> Software >> EasyApache (Apache Update)
For without WHM/cPanel control panel.
#yum install php-gd
#service httpd restart
#service httpd restart
That’s it.
