Rupal Javiya
Rupal Javiya

Reputation: 579

Want to install SOAP on PHP5.5

I am working on ubuntu 16.04 with PHP version 5.5 now I want to use SOAP library in it.

I have already installed php-soap package(with ref. How do I enable --enable-soap in php on linux?) and tried to enable it. but it won't works for me anyway.

By searching I found php soap package are available for PHP version 5.6, 7.0, 7.1.but am working on PHP version 5.5 and in situation that I can't change PHP version of my system.

Any way or suggestion to install soap for PHP5.5 would be great help.

Upvotes: 0

Views: 878

Answers (1)

Borislav Sabev
Borislav Sabev

Reputation: 4856

The SOAP package is available for all versions of PHP since at least 4 something. There are two options on how to install/enable it depending on the way your PHP was installed initially.

If your PHP was installed via the distribution's package manager you just have to install the package php-soap. On your Ubuntu this should be: sudo apt-get install php-soap

If your PHP was compiled on your machine you will have to compile it again passing in the switch --enable-soap .This switch could differ depending on your PHP verison. Check the documentation of make in PHP's source if this is the case.

Upvotes: 0

Related Questions