简体   繁体   English

SOAP 已安装但未在 phpinfo 中显示

[英]SOAP is installed but not showing in phpinfo

I have a server from linode.com , I installed soap from whm-easyapache, when I put this command In ssh我有一个来自linode.com的服务器,当我将此命令放入ssh时,我从linode.com -easyapache 安装了soap

php -i | php -i | grep -i soap grep -i 肥皂

It outputs:它输出:

soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

When I looked into phpinfo, there is nothing about soap same as php.ini, what should I do?当我查看phpinfo时,没有与php.ini相同的soap,我该怎么办?

its because the php executable you are using is probably not the one of the web server, it depends on the web server you install (XAMPP, WAMPP, MAMPP, AppServ, etc...), so you have to find the php.ini that apache is currently using 这是因为您使用的php可执行文件可能不是Web服务器之一,它取决于您安装的Web服务器(XAMPP,WAMPP,MAMPP,AppServ等),因此您必须找到php.ini该Apache当前正在使用

/etc/php5/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal. /etc/php5/cli/php.ini用于CLI PHP程序,您可以通过在终端上运行php找到该程序。

/etc/php5/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup. /etc/php5/cgi/php.ini用于该设置中未专门使用的php-cgi系统。

/etc/php5/apache2/php.ini is for the PHP plugin used by Apache. /etc/php5/apache2/php.ini用于Apache使用的PHP插件。 This is the one you need to edit for changes to be applied for your Apache setup. 这是您需要编辑的更改,以将更改应用于您的Apache设置。

also you can use locate php.ini or find / -name php.ini to find all php.ini files. 你也可以使用locate php.inifind / -name php.ini找到所有的php.ini文件。

after you do your changes you should restart apache 完成更改后,您应该重新启动apache

If you didn't see anything, go to apache error log. 如果没有看到任何内容,请转到apache错误日志。 maybe there is some warnings about it ( after restarting apache server ). 也许有一些警告(重启apache服务器后)。

In my apache error log, I saw the following error: 在我的Apache错误日志中,看到以下错误:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_soap.dll' - /usr/lib/php/20151012/php_soap.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP警告:PHP启动:无法加载动态库“ /usr/lib/php/20151012/php_soap.dll”-/usr/lib/php/20151012/php_soap.dll:无法打开共享库文件:无此类文件或目录在第0行的Unknown中

I solved this problem, by this solution (after a successful installation of soap):我通过这个解决方案解决了这个问题(在成功安装肥皂之后):

from WHM >> MultiPHP Manager >> check inherited and save , then uncheck and save.从 WHM >> MultiPHP Manager >> 选中继承并保存,然后取消选中并保存。 now I can see soap in my phpinfo.现在我可以在我的 phpinfo 中看到肥皂。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM