I’m having a problem that I’ve seen mentioned but not solved in the forums. I’m hoping that it is something somebody with more active experience with PHP, PEAR, and PECL will have a quick answer to.
The problem is that when I install PECL/APCu, I end up with a permissions error for the php extensions library:
Build process completed successfully Installing '/usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/apcu.so' ERROR: failed to write /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/apcu.so (copy(/usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/apcu.so): failed to open stream: Permission denied)
I installed PEAR following the instructions in the wiki. I’ve modified my bash_profile, .bashrc, and built a phprc as described in that wiki and associated pages. And I fixed the problem with PECL throwing errors discussed here (this is largely for my own benefit, since I’ve had to find this a few times).
I did notice that the directory showing up in the error was listed as my php extensions directory when I checked my pear config-show and also that on many form pages, people seemed to have set that to something under their home directory. So I changed the extension directory to one in my home directory using pear config-set ext_dir /home/$USR/pear/ext (I got this command from the Pear Dreamhost Wiki entry mentioned above and extended it to this directory).
Despite all this, I’m still getting the error. Changing the ext_dir setting seems to have no effect on where PECL is trying to set up the extension.
Any advice? Anybody know of a solution?