• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question How to enable php-xmlrpc on my server

alexislevrai

New Pleskian
Server operating system version
Ubuntu 22.04.4 LTS
Plesk version and microupdate number
Obsidian 18.0.60
Hello,

I want to connect to the API of my inventory system, for that I need to use Ripcord (an XML-RPC Client and Server for PHP GitHub - poef/ripcord: Automatically exported from code.google.com/p/ripcord) .
I'm on PHP 8.2 but it looks like php-xmlrpc is not enable.

I've tried to create an .htaccess with

<Files xmlrpc.php> order allow,deny allow from all </Files>

But doesn't look like it's still not working
Is there a way to enable it via Plesk ?
 
Hello,

I've tried this but there is a xmlreader, an xmlwriter but not RPC when I do Manage PECL Packages and want to add one I only found XMLRPCi, what is (from my research) an improve version of XMLRPC but that never left the beta level …
And even if I try to install it I'm facing this error :

Failed to install PHP extension 'XMLRPCi':
Failed to download pecl/XMLRPCi within preferred state "stable", latest release is version 1.0, stability "beta", use "channel://pecl.php.net/XMLRPCi-1.0" to install
install failed
 
Hello, guys. According to PHP's official documentation:
The extension is unbundled from php-src as of PHP 8.0.0, because the underlying
libxmlrpc has obviously been abandoned. It is recommended to reevaluate using
this extension.

The "xmlrpc" package has also been officially moved to experimental status, so you'd need to use a custom experimental sources to install this. In general, it's not recommended to use this tool as it hasn't been updated in several years and may not be compatible with modern PHP versions. You can install it at your own risk. Here are the steps you can try, but we cannot guarantee that will work:

  1. Install php82-dev package for php shipped by Plesk:
    apt install libxml2-dev plesk-php82-dev gcc make pkg-config
  2. Install xmlrpc module:
    /opt/plesk/php/8.2/bin/pecl install -f xmlrpc
  3. Set appropriate permissions for .so file:
    chmod 755 /opt/plesk/php/8.2/lib/php/modules/xmlrpc.so
  4. Manually enable module:
    echo "extension=xmlrpc.so" > /opt/plesk/php/8.2/etc/php.d/xmlrpc.ini
  5. Check that the module is enabled, the output should be like below:
    /opt/plesk/php/8.2/bin/php -m | grep xmlrpc
  6. Reread php handlers to make the module visible in Plesk:
    /usr/local/psa/admin/bin/php_handlers_control --reread
 
Back
Top