How to install xmlrpc?

Installing xmlrpc module on Directadmin. Seems simple isn't it ? Might find many articles on the internet but it may not work for you because you may be editing the wrong configuration file. That's just happened to me..

Here are the steps -
 
1. Run following command on the server to check the location of the configuration file -
./build used_configs

Mine was as below:
PHP (default) configuration file: /usr/local/directadmin/custombuild/configure/fpm/configure.php55
 
2. Go to path : cd /usr/local/directadmin/custombuild/configure/fpm

3. cp configure.php55 configure.php55_ORG

4. Edit configure.php55 file

5. add --with-xmlrpc \ to the configuration file.

For Example -

#!/bin/sh
./configure \
--prefix=/usr/local/php55 \
--program-suffix=55 \
--enable-fpm \
--with-config-file-scan-dir=/usr/local/php55/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-xmlrpc \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
--enable-intl

Note: 
Add \ if you are adding the module in between the configuration file. The \ tells to move on to the next module. Whereas if you are adding the module at the end of the configuration fie then \ is not needed.

6. Once the changes has been made then come to the following path -
cd /usr/local/directadmin/custombuild

7. Execute below command -
./build php n

There you go !!! the module is installed !!!

8. You can check by running the command -
php -m | grep xmlrpc

Was this answer helpful?

 Print this Article

Also Read

MySql Database has gone away

You may come across the error "MySql Database has gone away". I came across this error while...

How to run CGI script using any directory or /~username/cgi-bin?

If you would like to force Apache to allow CGI script then just follow below simple steps - 1....

How to forward the website to another URL?

Forwarding the website to another URL - 1. Using index.php file - 1. Create the page as...

How to upgrade mysql with custombuild 2.0?

Before doing any updates of MySQL be sure to create full backups of all databases.Steps to...

How to update Apache to latest version?

Steps to update Apache to latest version -1. Please check the current version of Apache using...

Powered by WHMCompleteSolution