Cannot install PEAR with Zend Server custom installation path

Follow

Applies To:

[ Zend Server 4.x ]
[ Linux ]

Symptom

On Linux, when installing the tarball (CE) to a non default path (this is only possible with the tarball), there is a problem with the Pear and pecl scripts that will look for the PHP binary path in the wrong place (in /usr/local/zend instead of in the installation location).

This is a problem we cannot solve because of the scripting structure in the pear / pecl commands that we don't want to patch.

Resolution / Workaround

As a workaround, users can easily re-install pear / pecl by running this script: http://pear.php.net/go-pear and properly pointing it to their Zend Server installation path.

For example:

# curl http://pear.php.net/go-pear | /usr/local/zend/bin/php

or:

# wget -O - curl http://pear.php.net/go-pear | /usr/local/zend/bin/php

To download and run the script. Then, follow the script's instructions and don't forget to point the paths to Zend Server's install path. 


Excerpt: Cannot install PEAR with Zend Server custom installation path

Original Post Date: 2009-10-23 14:09:19

Alternative Description:

Cannot install PEAR with Zend Server custom installation path

_____
Tags: custom installation path,Debian / Ubuntu,Pear,RedHat Enterprise Linux / CentOS,SUSE Linux Enterprise Server / OpenSUSE,Zend Server 4.x,oldKB

Have more questions? Submit a request

Comments

Powered by Zendesk