严选品质
正规商家

最新DirectAdmin安装配置xmlrpc?

今日在WHMCS后台检查健康状态,发现提示安装xmlrpc,在Directadmin上安装xmlrpc模块。看似很简单,可能在网上找到很多文章,但它可能不适合你,因为你可能正在编辑错误的配置文件。
最新DirectAdmin安装配置xmlrpc?
以下是步骤 –
1.先进入目录
cd /usr/local/directadmin/custombuild
2. 在运行以下命令以检查配置文件的位置
./build used_configs
我的如下:
PHP(默认)配置文件: /usr/local/directadmin/custombuild/configure/fpm/configure.php74和70,安装了多PHP版本,这里选择要配置xmlrpc的PHP版本
3. 复制备份:
cp configure.php74 configure.php74_ORG
4. 编辑 configure.php74 文件
5. 将 –with-xmlrpc \ 添加到配置文件中.

例如 

#!/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

注意:

如果要在配置文件之间添加模块,添加\。然而,如果您在配置结尾处添加模块,则不需要\.
6. 完成更改后,请转到以下路径 –
cd /usr/local/directadmin/custombuild
7. 执行以下命令
./build php n

模块开始编译安装

8. 完成后您可以通过运行命令进行检查
php -m | grep xmlrpc
赞(1)
未经允许不得转载:主机推广 » 最新DirectAdmin安装配置xmlrpc?