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