Php soap установка linux

How To Install php-soap on Ubuntu 18.04

In this tutorial we learn how to install php-soap on Ubuntu 18.04.

What is php-soap

This package provides a SOAP module for PHP.

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

This package is a dependency package, which depends on Ubuntu’s default PHP version (currently 7.2).

There are three ways to install php-soap on Ubuntu 18.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.

Install php-soap Using apt-get

Update apt database with apt-get using the following command.

After updating apt database, We can install php-soap using apt-get by running the following command:

sudo apt-get -y install php-soap 

Install php-soap Using apt

Update apt database with apt using the following command.

After updating apt database, We can install php-soap using apt by running the following command:

sudo apt -y install php-soap 

Install php-soap Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

After updating apt database, We can install php-soap using aptitude by running the following command:

sudo aptitude -y install php-soap 

How To Uninstall php-soap on Ubuntu 18.04

To uninstall only the php-soap package we can use the following command:

sudo apt-get remove php-soap 

Uninstall php-soap And Its Dependencies

To uninstall php-soap and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove php-soap 

Remove php-soap Configurations and Data

To remove php-soap configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge php-soap 

Remove php-soap configuration, data, and all of its dependencies

We can use the following command to remove php-soap configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge php-soap 

References

Summary

In this tutorial we learn how to install php-soap package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.

Читайте также:  Record online radio linux

Источник

How do I enable —enable-soap in php on linux?

That’s much the question. I have PHP 5.2.9 on Apache and I cannot upgrade PHP. Is there a way for me to enable SOAP in PHP 5.2.9? The PHP manual did not help at all when it said, «To enable SOAP support, configure PHP with —enable-soap .» How do I configure?

Did you install php from a pre-made package? Check your distro’s respositor and seee if there’s a soap package available.

no i didn’t install it. I was hoping editing php.ini was all I needed to enable SOAP.. but it seems like it requires something more.

What is your distro? You probably can avoid configuring and compiling PHP from source. There is very likely a package you can install.

If it’s your machine, there’s really no such thing as «cannot upgrade PHP». Worst case, you build from source and stick it in /usr/local or something.

3 Answers 3

Getting SOAP working usually does not require compiling PHP from source. I would recommend trying that only as a last option.

For good measure, check to see what your phpinfo says, if anything, about SOAP extensions:

to ensure that it is the PHP extension that is missing.

Assuming you do not see anything about SOAP in the phpinfo, see what PHP SOAP packages might be available to you.

In Ubuntu/Debian you can search with:

$ apt-cache search php | grep -i soap 

or in RHEL/Fedora you can search with:

$ yum search php | grep -i soap 

There are usually two PHP SOAP packages available to you, usually php-soap and php-nusoap . php-soap is typically what you get with configuring PHP with —enable-soap .

In Ubuntu/Debian you can install with:

$ sudo apt-get install php-soap 

Or in RHEL/Fedora you can install with:

After the installation, you might need to place an ini file and restart Apache.

i installed it and when i run the command line: php -i | grep -i soap. I get 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 . But i dont know the place of ini file that you mention above. i added it in /etc/php5/ but it isn’t work. there dont have soap.so in /usr/lib/php5/module or soap.ini file in /etc/php5/conf.d/

Читайте также:  Angry ip scanner linux установка

In case that you have Ubuntu in your machine, the following steps will help you:

  1. Check first in your php testing file if you have soap (client / server)or not by using phpinfo(); and check results in the browser. In case that you have it, it will seems like the following image ( If not go to step 2 ):

enter image description here

  1. Open your terminal and paste: sudo apt-get install php-soap.
  2. Restart your apache2 server in terminal : service apache2 restart.
  3. To check use your php test file again to be seems like mine in step 1.

If your PHP is running under FHM, then you may also need sudo service php-fpm restart as I did on AWS

As far as your question goes: no, if activating from .ini is not enough and you can’t upgrade PHP, there’s not much you can do. Some modules, but not all, can be added without recompilation ( zypper install php5-soap , yum install php-soap ). If it is not enough, try installing some PEAR class for interpreted SOAP support (NuSOAP, etc.).

In general, the double-dash —switches are designed to be used when recompiling PHP from scratch.

You would download the PHP source package (as a compressed .tgz tarball, say), expand it somewhere and then, e.g. under Linux, run the configure script

The configure command used by your PHP may be shown with phpinfo() . Repeating it identical should give you an exact copy of the PHP you now have installed. Adding —enable-soap will then enable SOAP in addition to everything else.

That said, if you aren’t familiar with PHP recompilation, don’t do it. It also requires several ancillary libraries that you might, or might not, have available — freetype , gd , libjpeg , XML , expat , and so on and so forth (it’s not enough they are installed; they must be a developer version, i.e. with headers and so on; in most distributions, having libjpeg installed might not be enough, and you might need libjpeg-dev also).

I have to keep a separate virtual machine with everything installed for my recompilation purposes.

Источник

How do I install soap extension?

I am hosting my site in DreamHost and they don’t support any third-party installation. UPDATE: I copied the php.ini file with this script: http://sxi.sabrextreme.com/dh-phpini I am using an API from a website and it says something like this:

####################################################################### ## You need to enable the following extensions in your PHP.ini file ## ## php_openssl.dll ## ## php_soap.dll ## ####################################################################### 
extension=php_bz2.dll ;extension=php_cpdf.dll ;extension=php_curl.dll ;extension=php_dba.dll ;extension=php_dbase.dll ;extension=php_dbx.dll ;extension=php_exif.dll ;extension=php_fdf.dll ;extension=php_filepro.dll ;extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_ifx.dll ;extension=php_iisfunc.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_java.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_mcrypt.dll ;extension=php_mhash.dll ;extension=php_mime_magic.dll ;extension=php_ming.dll ;extension=php_mssql.dll ;extension=php_msql.dll ;extension=php_mysql.dll ;extension=php_oci8.dll **extension=php_openssl.dll** ;extension=php_oracle.dll ;extension=php_pdf.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_sockets.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll ;extension=php_w32api.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll ;extension=php_yaz.dll ;extension=php_zip.dll 

Источник

Читайте также:  Linux найти все символьные ссылки

How To Install php-soap on Ubuntu 20.04

In this tutorial we learn how to install php-soap on Ubuntu 20.04.

What is php-soap

This package provides a SOAP module for PHP.

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

This package is a dependency package, which depends on Debian’s default PHP version (currently 7.4). Description-md5: a06ae54e46b8b7136f46fae96ccce23b

There are three ways to install php-soap on Ubuntu 20.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.

Install php-soap Using apt-get

Update apt database with apt-get using the following command.

After updating apt database, We can install php-soap using apt-get by running the following command:

sudo apt-get -y install php-soap 

Install php-soap Using apt

Update apt database with apt using the following command.

After updating apt database, We can install php-soap using apt by running the following command:

sudo apt -y install php-soap 

Install php-soap Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

After updating apt database, We can install php-soap using aptitude by running the following command:

sudo aptitude -y install php-soap 

How To Uninstall php-soap on Ubuntu 20.04

To uninstall only the php-soap package we can use the following command:

sudo apt-get remove php-soap 

Uninstall php-soap And Its Dependencies

To uninstall php-soap and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove php-soap 

Remove php-soap Configurations and Data

To remove php-soap configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge php-soap 

Remove php-soap configuration, data, and all of its dependencies

We can use the following command to remove php-soap configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge php-soap 

References

Summary

In this tutorial we learn how to install php-soap package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.

Источник

Оцените статью
Adblock
detector