Skip to content
Advertisement

“PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/http.so'” after downgraded PHP from 8.1 to 7.1

We have a requirement that needs to downgrade PHP from 8.1 to 7.1 in our Ubuntu 18 server.

JavaScript

After the downgrade, we’re seeing PHP Startup error everytime we check php -v

Below is the exact error text:

JavaScript

The missing libraries are really not found in the said directory as I checked.

JavaScript

We have tried reinstalling as suggested from other forum with same error.

JavaScript

It works for them but not in ours.

I hope I can get help here. Thanks in advance.

By the way, I’m not a Linux and PHP developer. Just starting getting into it.

Advertisement

Answer

--reinstall will only reinstall the things that are installed, but it looks like you actually removed a number of modules. The propro, raphf, and http modules are not standard and are not installed by default. If you don’t actually need/use them, you can just disable them so that they don’t try to load:

JavaScript

However, if your app requires these modules, you’ll need to explicitly add them:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement