admin/environment/custom check/xmlrpc webservice usage

From MoodleDocs

The plugin webservice_xmlrpc has been deprecated because the php_xmlrpc package it depends on has been deprecated.

You should arrange to move any services that you're consuming or providing away from xmlrpc as soon as possible. You can then uninstall the plugin.

Uninstall plugin

  1. Go to Site administration --> Server --> Web services --> Manage protocols.
  2. Ensure that the xmlrpc protocol is disabled.
  3. Go to Site administration --> Plugins --> Plugins overview.
  4. Ctrl-F and search for "webservice_xmlrpc".
  5. Click the Uninstall button for this plugin and follow through the steps.

If the "xmlrpc_webservice_usage" check keeps reappearing

If the "xmlrpc_webservice_usage" check keeps on reappearing on the environment check page, this is likely because the xmlrpc protocol is still configured as allowed even if the plugin no longer exists on the site. Perhaps you uninstalled the plugin without disabling it? In any case, this can be fixed in the database.

mysql> select * from mdl_config where value like "%xmlrpc%";
+-----+---------------------+--------------------------+
| id  | name                | value                    |
+-----+---------------------+--------------------------+
| 569 | webserviceprotocols | rest,soap,xmlrpc,restful |
+-----+---------------------+--------------------------+
1 row in set (0.01 sec)

mysql> update mdl_config set value = "rest,soap,restful" where id = 569;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql>

Once you have done this, purge the caches, and your environment check will be happy again.