Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg()

#1
I have a fresh install of Openlitespeed, Debian 11.3, and have tried PHP 7.3, 7.4, and 8.0 without success in eliminating this error.
For all PHP versions I tried, GD is enabled. What should I try?

I attached PHP info from a working server and the one not working.
 

Attachments

Last edited:
#3
That was the fix for PHP 8. I still have issues with my application on PHP 8 so I need to stick with PHP 7.3. When I compile PHP 8.0 with the option "--with-jpeg" I get the jpeg option. When I compile PHP 7.3 with the option "--with-jpeg" I get "configure: WARNING: unrecognized options: --with-jpeg"
Is there a trick to compiling PHP 7.3 on Debian 11 with the jpeg option for GD?
 
Top