安装 XML-RPC 在 PHP8 Dockerfile 中。

huangapple go评论61阅读模式
英文:

Install XML-RPC in PHP8 Dockerfile

问题

我有这个Dockerfile:

FROM php:8.1.0-fpm

RUN apt-get update \
	&& apt-get install -y zlib1g-dev g++ git libicu-dev zip libzip-dev zip libpng-dev libssl-dev libxslt-dev wkhtmltopdf procps acl \
	&& pecl install apcu \
	&& docker-php-ext-install intl opcache pdo pdo_mysql zip gd xsl -j$(nproc) \
	&& docker-php-ext-enable apcu opcache \
	&& docker-php-ext-configure zip

# xmlrpc
# channel://pecl.php.net/xmlrpc-1.0.0RC3
# php-xmlrpc
# php-xml-rpc
# php8.1-xmlrpc
# php-pecl-xmlrpc
# php81-pecl-xmlrpc
# xmlrpc-1.0.0RC3
英文:

I have this Dockerfile:

FROM php:8.1.0-fpm

RUN apt-get update \
	&& apt-get install -y zlib1g-dev g++ git libicu-dev zip libzip-dev zip libpng-dev libssl-dev libxslt-dev wkhtmltopdf procps acl \
	&& pecl install apcu \
	&& docker-php-ext-install intl opcache pdo pdo_mysql zip gd xsl -j$(nproc) \
	&& docker-php-ext-enable apcu opcache \
	&& docker-php-ext-configure zip

# xmlrpc
# channel://pecl.php.net/xmlrpc-1.0.0RC3
# php-xmlrpc
# php-xml-rpc
# php8.1-xmlrpc
# php-pecl-xmlrpc
# php81-pecl-xmlrpc
# xmlrpc-1.0.0RC3

I've tried so many ways to include XML-RPC in there (c.f. commented lines) but nothing's working. I know it's not recommended to use this package but it's a dependency that I absolutely need. It worked fine in PHP 7.4, but I can't figure it out for PHP 8.1.

Can anyone clue me in please?

答案1

得分: 3

添加此命令:

RUN pecl install channel://pecl.php.net/xmlrpc-1.0.0RC3 xmlrpc

并不要忘记将 "extension=xmlrpc.so" 添加到 php.ini 文件中。

英文:

Add this command

RUN pecl install channel://pecl.php.net/xmlrpc-1.0.0RC3  xmlrpc

and do not forget to add "extension=xmlrpc.so" to php.ini file.

huangapple
  • 本文由 发表于 2023年2月7日 05:21:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/75366708.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定