Installing SOAP in Docker Container

This WP plugin interfaces with an old SOAP-based API.

Developing with a Docker Compose WordPress library by Chris Zarate.

Steps to install SOAP extension:

  1. docker-compose exec wordpress bash (get in the guest server)
  2. php --ini (find php.ini files)
  3. cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini (in this case there wasn’t one)
  4. apt-get update && apt-get install vim (to edit)
  5. echo "<?php phpinfo() ?>" > info.php (and check in browser)
  6. uncomment ;extension=soap in php.ini
  7. apt-get update -yqq && apt-get -y install libxml2-dev
  8. docker-php-ext-install soap
  9. apache2ctl restart

That should do the trick. Could add code to Docker Container as well, perhaps.