Image support compiling php, how?


What do I need to add to the php compile options to get the full support of all the image formats?

I'm trying to run a web gallery by Chevereto but I can not upload .jpg files

Here are the parameters, I used.

--with-mysqli --with-zlib --with-gd   --with-jpeg --with-png --with-freetype --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-mcrypt --with-pdo-mysql --enable-ftp --enable-zip --with-curl --enable-soap --enable-xml --enable-json --with-openssl --enable-bcmath --with-ssh2 --enable-exif --enable-opcache --enable-fpm --with-litespeed --with-curl
But still I get this message

2019-08-29 17:54:09.998175 [NOTICE] [24643] [] [STDERR] PHP Fatal error:  Uncaught Error: Call to undefined function CHV\imagecreatefromjpeg() in /usr/local/lsws/
Stack trace:
#0 /usr/local/lsws/ CHV\Imageresize->resize_image()
#1 /usr/local/lsws/ CHV\Imageresize->exec()
#2 /usr/local/lsws/ CHV\Image::resize('/usr/local/lsws...', '/usr/local/lsws...', '', Array)
#3 /usr/local/lsws/ CHV\Image::uploadToWebsite(Array, Array, Array)
#4 /usr/local/lsws/ G\Handler->{closure}(Object(G\Handler))
#5 /usr/local/lsws/ G\Handler->processRequest()
#6 /usr/local/lsws/ G\Handler->__construct(Array)
#7 /usr/local/lsws/ in /usr/local/lsws/ on line 215
I use php 7.3.8 and the latest litespeed
What are the proper parameters for the php compile?
Last edited by a moderator:
Couldn't fix it by compiling it myself..

What would you choose from here?

PHP 7.3
  • lsphp73 : server-side, HTML-embedded scripting language (LSAPI binary)
  • lsphp73-common : Common files for packages built from the LSPHP source
  • lsphp73-curl : CURL module for LSPHP
  • lsphp73-dbg : Debug symbols for LSPHP71
  • lsphp73-dev : Files for LSPHP71 module development
  • lsphp73-imap : IMAP module for LSPHP
  • lsphp73-intl : Internationalisation module for LSPHP
  • lsphp73-json : JSON module for LSPHP
  • lsphp73-ldap : LDAP module for LSPHP
  • lsphp73-modules-source : LSPHP 71 modules source package
  • lsphp73-mysql : MySQL module for LSPHP
  • lsphp73-opcache : Zend OpCache module for LSPHP
  • lsphp73-pgsql : PostgreSQL module for LSPHP
  • lsphp73-pspell : pspell module for LSPHP
  • lsphp73-recode : recode module for LSPHP
  • lsphp73-snmp : SNMP module for LSPHP
  • lsphp73-sqlite3 : SQLite3 module for LSPHP
  • lsphp73-sybase : Sybase module for LSPHP
  • lsphp73-tidy : Tidy module for LSPHP
alright I got it working with just lsphp73 + curl

but this is way more stuff than I need :d


Now I need to figure out the minimal commands I need

thanks for the help