Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add Linux and Zend packages for building the PHP YAML module from PECL sources:
    # yum install gcc autoconf libyaml libyaml-devel php-dev-zend-server
  2. IMPORTANT: Add /usr/local/zend/bin to your $PATH, to use Zend Server binaries (PECL, PHP)
  3. Run PECL commands. When prompted for libyaml location, click enter for autodetect.
    # pecl channel-update pecl.php.net
    # pecl install yaml
  4. Check module dependencies:
    # ldd /usr/local/zend/php/7.3/lib/ext/yaml.so
  5. Add ini for loading YAML into PHP:
    # echo "extension=yaml.so" > /usr/local/zend/php/7.3/etc/conf.d/yaml.ini
  6. Check PHP module loaded in CLI:
    # php -m | grep yaml
  7. Verify that yaml_parse (and other YAML functions) is added:
    # php -r 'print_r(get_extension_funcs("yaml"));'
  8. Restart web server to load YAML into your Application PHP.
  9. Check YAML functionality in your app (run unit test, load web page etc.).

...