Description of problem:
I can't install yaf framework for php, on the PHP 5.4 cartridge
on the PHP 5.3 cartridge won't install at all, due to missing PCRE library, and when provided manually, it will fail as the PHP 5.4 cartridge does.
Steps to Reproduce:
1. Crete an aplication.
2. use a PHP 5.4 cartridge
3. pecl install yaf
ERROR: failed to write /opt/rh/php54/root/usr/lib64/php/modules/yaf.so (copy(/opt/rh/php54/root/usr/lib64/php/modules/yaf.so): failed to open stream: Permission denied)
the yaf.so module should be written there.
It's not possible to install custom PHP PECLs on OpenShift at the moment. You might want to:
1. Vote up https://trello.com/c/Ja9IcFIb Custom PECLs RFE
2. Vote up https://www.openshift.com/content/enable-custom-php-extensions Custom PECLs idea
3. Create a custom/downloadable cartridge (fork of https://github.com/openshift/origin-server/tree/master/cartridges/openshift-origin-cartridge-php) with built-in yaf.so library.
Unfortunately, there's no php-yaf CentOS/RHEL RPM available in the official/EPEL repositories at the moment (there's just one unofficial RPM built by Remi), so it's not easy for us to enable this PECL by default on OpenShift.