Skip to content

Commit

Permalink
Finally, the right PEAR stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
convissor committed Dec 6, 2012
1 parent e054b55 commit 7c039d3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,22 @@ installed version of PHP is the one used by the web server.
* Install the centralized PEAR repository if one doesn't exist.

wget http://pear.php.net/go-pear.phar
export PHP_PEAR_PHP_BIN=/usr/local/bin/php
sudo php go-pear.phar

When asked to adjust the configuration:

* `1 Installation base ($prefix)` set it to `/usr/local`
* `5 PHP code directory ($php_dir)` set it to `/usr/local/share/pear`
* `8 User-modifiable configuration files directory` set it to `/usr/local/cfg`
* `11 Name of configuration file` set it to `/usr/local/etc/pear.conf`

Once the install is done, adjust some other settings.

sudo pear config-set auto_discover 1
sudo pear config-set ext_dir ""
sudo pear config-set php_bin "/usr/local/bin/php"
sudo pear config-set sig_keydir ""
sudo pear config-set auto_discover 1 system
sudo pear config-set ext_dir "" system
sudo pear config-set php_bin "/usr/local/bin/php" system
sudo pear config-set sig_keydir "" system

Disable the centralized pecl install to avoid conflicts with the
pecl installed for each version of PHP.
Expand Down

0 comments on commit 7c039d3

Please sign in to comment.