PHP json extension not working

Dijkstra

Verified User
Joined
May 26, 2008
Messages
12
Good day everyone!

I hope someone can help me with a PHP Json problem.

On a testserver I've installed litespeed webserver (with lsphp) and PHP7.3 (and tested PHP7.1)

While a webapplication is running well on a other server, on this testserver, the application runs into a fatal error "PHP's json extension is required to use Monolog's NormalizerFormatter" (it's laravel btw)

As I read on servereal websites, PHP json should be enabled by default within PHP7+. But, when I look to the configure command in phpinfo(), i see: " '--disable-json' '--disable-intl' '--disable-pdo' '--disable-phar'".

In /usr/local/directadmin/custombuild/configure/litespeed/configure.php71 and configure.php73, --disable-json is'nt there, so I created a file, /usr/local/directadmin/custombuild/custom/litespeed/configure.php71 and added "--enable-json " to test if something happens after a recompile.

Sadly: no, it's compiled with " --disable-json".

Do anyone know where to find this --disable-json part?
 
Back
Top