I came across this error a few times on DirectAdmin installations. I first noticed this error when I installed Nextgen Gallery plugin on some WordPress installation. When I tried to upload some pictures, php should resize them and create thumbnails, but instead of thumbnails I’ll get error about JPEG library (checked in error log). Below is procedure on how to fix that error. At least it worked for me. This Directaadmin was installed on FreeBSD 9.1.
- Login as root
- Update ports
[root@lala ~]# portsnap fetch update
- Delete currently installed JPEG library
[root@lala ~]# pkg_info | grep jpeg [root@lala ~]# pkg_delete jpeg
- Install jpeg library with custombuild
- Edit your configuration script for php in custombuild. Add or edit values as bellow. Notice that path is not /usr/local/lib anymore.
–with-gd \ –with-jpeg-dir=/usr/local \
- Rebuild PHP with custombuild
[root@lala ~]# cd /usr/local/directadmin/custombuild [root@lala /usr/local/directadmin/custombuild]# ./build php n
- When build is complete, restart Apache and try it again. It should work.
[root@lala ~]# /usr/local/etc/rc.d/httpd restart
Recent Comments