站长视角
用户至上

最新DirectAdmin安装配置xmlrpc?

今日在WHMCS后台检查健康状态,发现提示安装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)
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权, 转载请注明出处。
文章名称:《最新DirectAdmin安装配置xmlrpc?》
文章链接:https://www.sshce.com/9320.html
【声明】:国外主机测评仅分享信息,不参与任何交易,也非中介,所有内容仅代表个人观点,均不作直接、间接、法定、约定的保证,读者购买风险自担。一旦您访问国外主机测评,即表示您已经知晓并接受了此声明通告。
【关于安全】:任何 IDC商家都有倒闭和跑路的可能,备份永远是最佳选择,服务器也是机器,不勤备份是对自己极不负责的表现,请保持良好的备份习惯。
香港110M(含10M CN2)大带宽独服限量促销,香港E3-8G-1T硬盘-3IP,月付仅799!

登录

找回密码

注册