在Web应用程序中为容器安装PHP模块的7.2模块 - wordpress [英] Install SOAP module for PHP 7.2 in Web App for containers - wordpress

查看:42
本文介绍了在Web应用程序中为容器安装PHP模块的7.2模块 - wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在通过Web App for Containers部署的Wordpress中为PHP 7.2安装SOAP模块。

I need to install SOAP module for PHP 7.2 in Wordpress deployed over Web App for Containers.

尝试了几个诸如"pear install SOAP-0.14.0"之类的命令。或"docker-php-ext-install soap"但是没有成功。

Tried several commands like "pear install SOAP-0.14.0" or "docker-php-ext-install soap" but no success.

梨说它已安装(但它不是)并且docker命令返回以下内容:

pear says it is installed (but it is not) and docker command returns the below:

找不到autoconf。请检查您的autoconf安装和
$ PHP_AUTOCONF环境变量。然后,重新运行此脚本。

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

感谢任何帮助。

谢谢,

猫王

推荐答案

您好elvisn79,



您是如何首先安装SOAP扩展的?您是否尝试在安装后重新启动服务器?默认情况下,PHP 5.6是已安装的内置PHP版本。但是,PHP 7.2版本也可用,但默认情况下未启用。在尝试安装扩展程序之前,请确保更新
PHP版本。要更新PHP版本,请转到Azure门户中的应用程序,然后单击
设置按钮。在设置刀片中,选择
应用程序设置,然后选择新的PHP版本。点击
保存
按钮应用程序设置刀片的顶部。这也可以通过CLI和powershell完成,如

文档

Hi elvisn79,

How did you install the SOAP extension in the first place? Did you try restarting the server after installation? By default, PHP 5.6 is the installed built-in PHP version. However, PHP 7.2 version is also available, but not enabled by default. Make sure your PHP version is updated before trying to install an extension. To update the PHP version, Go to your app in the Azure portal and click on the Settings button. From the Settings blade, select Application Settings and choose the new PHP version.Click the Save button at the top of the Application settings blade. This can also be done through CLI and powershell as shown in this documentation.

此外,您可以使用此命令仔细检查是否已安装SOAP:
php - 我| grep -i soap 。如果没有安装,尝试使用此命令
sudo apt-get install php7.0-soap 



你可以还可以按照此
中的步骤通过Azure门户启用扩展
文档




希望有所帮助。如果您有其他问题,请告诉我们。

Also, you can double check to see if you already have SOAP installed by using this command: php -i | grep -i soap. If it is not installed, trying using this command sudo apt-get install php7.0-soap 

You can also enable extensions through the Azure portal by following the steps in this documentation.

Hope that helps. Please let us know if you have additional questions.


这篇关于在Web应用程序中为容器安装PHP模块的7.2模块 - wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆