Skip to content

Instantly share code, notes, and snippets.

@drmalex07
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save drmalex07/11301210 to your computer and use it in GitHub Desktop.

Select an option

Save drmalex07/11301210 to your computer and use it in GitHub Desktop.
Create an isolated PHP PEAR environment. #php #php-pear

Follow the instructions at PEAR installation and download PEAR package.

wget http://pear.php.net/go-pear.phar 

Install PEAR and specify the prefixes when propmted: for example, use /usr/local as prefix and /usr/local/etc/pear.conf as PEAR configuration file.

php go-pear.phar

After installation, you can optionally add /usr/local/bin to your shell's PATH. In order to use PEAR, you must always provide the config file as a command-line argument (or PEAR will use the system's default path):

pear -C /usr/local/etc/pear.conf channel-update pear.php.net
pear -C /usr/local/etc/pear.conf install HTTP_Request2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment