注意:部分文章发布时间较长,可能存在未知因素,购买时建议在本站搜索商家名称,先充分了解商家动态。
交流:唯一投稿邮箱:hostvps@88.com。
在Directadmin上安装xmlrpc模块。看似很简单,可能在网上找到很多文章,但它可能不适合你,因为你可能正在编辑错误的配置文件。以下是步骤 –1. 在服务器上运行以下命令以检查配置文件的位置./build used_configs我的如下:PHP(默认)配置文件: /usr/local/directadmin/custombuild/configure/fpm/configure.php702. 转到路径 :cd /usr/local/directadmin/custombuild/configure/fpm3. 复制备份:cp configure.php70 configure.php70_ORG4. 编辑 configure.php70 文件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/custombuild7. 执行以下命令./build php n模块开始编译安装8. 完成后您可以通过运行命令进行检查php -m | grep xmlrpc