Error “Unable to load dynamic library ‘xmlrpc.so’” (SOLVED)
February 24, 2021
When running a web server or running PHP scripts on the command line, you may encounter an error:
PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc.so' (tried: /usr/lib/php/modules/xmlrpc.so (/usr/lib/php/modules/xmlrpc.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/xmlrpc.so.so (/usr/lib/php/modules/xmlrpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
In fact, this is not an error at all, but just a warning. That is, the server and PHP scripts should still work fine.
This warning says that when PHP starts up, the dynamic library 'xmlrpc.so' (PHP module) cannot be loaded. An attempt was made to download this file from all typical locations, but could not be found anywhere.
XMLRPC is an extension that was included in PHP that brought XML RPC server and client functions to PHP.
This extension was relatively unused and was labeled “experimental” all along. This extension relied on some libraries that had not been supported for several years.
The xmlrpc extension is no longer bundled with PHP since PHP 8.0. You can still install the extension from PECL if your code or any dependencies require it.
If you do not need this extension, then in the php.ini file find the line
extension=xmlrpc.so
and comment it out to get:
;extension=xmlrpc.so
If you really need this extension, then install it from PECL, or use one of the following alternatives:
Related articles:
- Error “Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: mysqli, openssl” (SOLVED) (100%)
- How to install Apache web server with PHP, MySQL and phpMyAdmin on Windows [updated: September 2024] (60.7%)
- What is open_basedir for and how to use open_basedir (60.7%)
- How to fix “Configuration File (php.ini) Path” no value (SOLVED) (60.7%)
- How to show all errors in PHP 8 (60.7%)
- How to change keyboard shortcut to change keyboard layout in Windows 11 (RANDOM - 50%)