• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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