Red Hat Bugzilla – Bug 842519
Failed to install some extensions/modules to php-5.3 app using deplist.txt
Last modified: 2015-05-14 18:56:56 EDT
Description of problem:
Create a php-5.3 app and add "pecl/mongo" to its deplist.txt. Git push. The installation of mongo module always fail because it tries to copy mongo.so to /usr/lib64/php/modules/. Some other modules like "pear/Auth" also have the same problem. Maybe we should change the php configuration to make pecl install the module to some other place.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create a php-5.3 app
2.Add one line to <git_repo>/deplist.txt
==> <git_repo>/deplist.txt <==
3.Git push all the changes
remote: Build process completed successfully
remote: Installing '/usr/lib64/php/modules/mongo.so'
remote: ERROR: failed to write /usr/lib64/php/modules/mongo.so (copy(/usr/lib64/php/modules/mongo.so): failed to open stream: Permission denied)
remote: Running .openshift/action_hooks/build
remote: Running .openshift/action_hooks/deploy
remote: Starting application...
mongo module should be installed successfully.
Created attachment 599922 [details]
error log of git push
There're some other extensions/modules which can't be installed successfully. Please decide whether they're bugs or not.
There seems to be an upstream bug in the Pear install function which prevents us from properly configuring the output location of compiled Pecl modules. Compilation will succeed, but the resulting module will always be copied to /usr and will fail while doing so. There needs to be a decision made to either wait for an upstream fix, or to try and work around it ourselves.
US2119 Custom PHP extensions