I would like to install the Horde framework (http://www.horde.org/apps/horde/docs/INSTALL) on my shared host (https://www.gandi.net/hosting/simple?language=php&db=mysql&grid=A). I prefer to install using Pear/Pecl. These are installed on the shared host. However, I cannot add any, and thus the needed channel:
$ pear channel-discover pear.horde.org could not create lock file: fopen(/usr/share/php/.lock): failed to open stream: Read-only file system
The relevant directory layout is:
~/web |-includes |-vhosts |-horde-vhost.domain.invalid | |-htdocs |-another-vhost.domain.invalid |-htdocs
includes and everything under
horde-vhost.domain.invalid is writable; the rest is not.
includes is the PHP include directory; I am not very familiar with PHP, so I actually don't really know what that means; I guess this is the place I can add PHP packages used by multiple vhosts.
htdocs is where the internet-accessible portions of the website should be put.
Inspired by the instructions on installing a local copy of pear (http://pear.php.net/manual/nl/installation.shared.php), I have been able to install my own version of Pear to
includes (I thought this would be an appropriate location):
$ pear install -o -R ~/web/includes/ PEAR [...] downloading PEAR-1.9.4.tgz ... Starting to download PEAR-1.9.4.tgz (296,332 bytes) [...] install ok: channel://pear.php.net/PEAR-1.9.4 [...]
(Following the instructions literally did not work. I also don't know what to do with the local configuration creation.)
But using it gives the following error:
$ ~/web/includes/usr/bin/pear channel-discover pear.horde.org bash: ./usr/bin/pear: /bin/sh: bad interpreter: Permission denied
I have feeling this must be possible, but I just lack the necessary understanding of PHP and Pear to get the setup working. (Perhaps I even don't need to install my own Pear...).