Home » WHM/cPanel » PHP Fatal error: Call to undefined function imagecreatefromjpeg() in /home/user/…

PHP Fatal error: Call to undefined function imagecreatefromjpeg() in /home/user/…

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

That’s it.

About

I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry from last 7 years.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud