简体   繁体   English

PHP警告:模块“ soap”已在第0行的Unknown中加载

[英]PHP Warning: Module 'soap' already loaded in Unknown on line 0

Hi, I have a problem with this error: PHP Warning: Module 'soap' already loaded in Unknown on line 0 嗨,我有一个与此错误有关的问题:PHP警告:模块“肥皂”已经在第0行的“未知”中加载

I am running vps on media temple. 我正在媒体圣殿上运行vps。 I got some instructions from their knowledge base and I followed them exactly as described. 我从他们的知识库中获得了一些说明,并且完全按照说明进行了操作。 However to see if SOAP properly installed i went to the command line and ran "pear list" and this is what I get. 但是,要查看SOAP是否正确安装,我去了命令行并运行了“梨子列表”,这就是我得到的。

PHP Warning:  Module 'soap' already loaded in Unknown on line 0
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.11  stable
Console_Getopt   1.3.1   stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable
[root@w8ld-gg7p ~]# rep extension /usr/local/lib/php.ini
-bash: rep: command not found
[root@w8ld-gg7p ~]# 

Can anyone tell me what I'm doing wrong? 谁能告诉我我在做什么错? First off it doesn't load SOAP in the installed packages list. 首先,它不会在已安装的软件包列表中加载SOAP。 Second I get that SOAP loaded in unkown error. 其次,我将SOAP加载为未知错误。

I'm a newbie so any help would be greatly appreciated! 我是新手,所以我们将不胜感激! Thank you! 谢谢!

looks like you are loading the 'soap' module multiple times instead of rep extension /usr/local/lib/php.ini , you should use grep extension /usr/local/lib/php.ini to search the modules loaded 看起来您要多次加载“ soap”模块,而不是rep extension /usr/local/lib/php.ini ,应该使用grep extension /usr/local/lib/php.ini来搜索已加载的模块

If your ini is in different location, you need to find where is it. 如果您的ini位于其他位置,则需要查找它的位置。

  1. If you got PHP Warning from webpage, you can create a file with this as the content: 如果您从网页获得PHP警告,则可以创建一个以以下内容为内容的文件:

     <?php phpinfo(); ?> in your browser, search for "Loaded Configuration File" and "Scan this dir for additional .ini files" 
  2. If you got PHP Warning when running PHP on the shell, run this on shell: 如果在外壳上运行PHP时收到PHP警告,请在外壳上运行此命令:

     php -r "phpinfo();" | awk '/^Loaded|^Scan/ {print $NF}' 

depends on your installation, besides php.ini you may have ini files in php.d 取决于您的安装,除了php.ini以外,您可能在php.d中也有ini文件

for my redhat server: 对于我的redhat服务器:

; ; Note: packaged extension modules are now loaded via the .ini files 注意:打包的扩展模块现在通过.ini文件加载

; ; found in the directory /etc/php.d; 在目录/etc/php.d中找到; these are loaded by default. 这些是默认加载的。

Go to: /etc/php/7.0/cli/conf.d/ 转到:/etc/php/7.0/cli/conf.d/

Then: 然后:

ls | grep soap

Two files will be listed: 将列出两个文件:

  • 20-soap.ini 20肥皂
  • 40-soap.ini 40肥皂

Comment the extension=soap.so in one of the files: 在以下文件之一中注释extension = soap.so:

;extension=soap.so

Done. 做完了

If you're using Docker, comment the follow line in your /workspace/Dockerfle: 如果您使用的是Docker,请在/ workspace / Dockerfle中注释以下行:

echo "extension=soap.so" >> /etc/php/7.0/cli/conf.d/40-soap.ini

Comment the extension=soap in one of the files: 在以下文件之一中注释extension = soap:

eg = in your Xampp (php.ini) 例如=在您的Xampp中(php.ini)

;extension=soap

I had a similar problem for mbstring module. 我对于mbstring模块也有类似的问题。 As we have two php.ini file one in apache2 and the other in cli You should uncomment (and hence load) in only one php.ini file the line ;extension=php_soap.dll(so) This should suppress the warning. 由于我们在apache2中有两个php.ini文件,而在cli中则有另一个文件。您应该只在一个php.ini文件中取消注释(并因此加载);该行; extension = php_soap.dll(so)这应该禁止显示警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP 警告:模块已在第 0 行的未知中加载 - PHP Warning: Module already loaded in Unknown on line 0 接收PHP警告:模块&#39;[模块名称]&#39;已在第0行的未知中加载 - Receiving PHP Warning: Module '[module name]' already loaded in Unknown on line 0 PHP警告:模块“ zip”已在第0行的Unknown中加载 - PHP Warning: Module 'zip' already loaded in Unknown on line 0 Symfony 3 PHP警告:模块&#39;intl&#39;已在第0行的Unknown中加载 - Symfony 3 PHP Warning: Module 'intl' already loaded in Unknown on line 0 PHP警告:模块&#39;modulename&#39;已在第0行的Unknown中加载 - PHP Warning: Module 'modulename' already loaded in Unknown on line 0 PHP 警告:模块“memcached”已加载到第 0 行的未知中 - PHP Warning: Module 'memcached' already loaded in Unknown on line 0 PHP 警告:模块“imagick”已加载到第 0 行的未知中 - PHP Warning: Module 'imagick' already loaded in Unknown on line 0 PHP 警告:模块“oci8”已加载到第 0 行的“未知”中 - PHP Warning: Module 'oci8' already loaded in Unknown on line 0 遇到 PHP 错误严重性:核心警告消息:模块“ffmpeg”已加载文件名:未知行号:0 回溯 - A PHP Error was encountered Severity: Core Warning Message: Module 'ffmpeg' already loaded Filename: Unknown Line Number: 0 Backtrace PHP 模块已加载警告 - PHP module is already loaded warning
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM