Wrong JPEG library version: library is 62, caller expects 70

flashweb

Well-Known Member
Mar 13, 2003
255
2
168
cPanel Access Level
Root Administrator
I got GD error on cpanel server.

On running script from command line, i get

[email protected] [/home]# php /home/flashweb/public_html/captcha.php
Wrong JPEG library version: library is 62, caller expects 70
[email protected] [/home]#
I fixed it by running

rm -f /usr/lib64/libjpeg.so.62
ln -s /usr/local/lib/libjpeg.so.7.0.0 /usr/lib64/libjpeg.so.62
But it look like the symlink is getting replaced after yum update.

What is the proper way to fix the error ?

Since this happen on almost all cpanel/centos servers, why not easyapache download its own version of libjpeg and compile ?
 

JayFromEpic

Well-Known Member
Apr 2, 2011
218
8
68
Scottsdale
cPanel Access Level
Root Administrator
Twitter
They may not have had time to incorporate that feature into the easyapache just yet. You can recommend it tho through: Feature Requests for cPanel and WHM

But for this, in ssh, you can use putty if you dont have a client, run this command:

[[email protected]]# yum install php-gd


Just go through the steps, lemme know if works alright for you!