title: Reinstall PHP Pear
body: <p>I used to have MAMP (<a href="http://www.mamp.info/en/index.html" rel="nofollow">http://www.mamp.info/en/index.html</a>). Uninstalled that and installed "MAMP" via Macports.</p>
  
  <p>I completely removed /Applications/MAMP/ folders. I would now like to install PHPUnit via pear. </p>
  
  <p>Pear is installed:</p>
  
  <pre><code>&gt; which pear
  /opt/local/bin/pear
  
  &gt; pear config-show
  Configuration (channel pear.php.net):
  =====================================
  Auto-discover new Channels     auto_discover    &lt;not set&gt;
  Default Channel                default_channel  pear.php.net
  HTTP Proxy Server Address      http_proxy       &lt;not set&gt;
  PEAR server [DEPRECATED]       master_server    pear.php.net
  Default Channel Mirror         preferred_mirror pear.php.net
  Remote Configuration File      remote_config    &lt;not set&gt;
  PEAR executables directory     bin_dir          /Applications/MAMP/bin/php/php5.3.6/bin/
  PEAR documentation directory   doc_dir          /Applications/MAMP/bin/php5.3/docs
  PHP extension directory        ext_dir          /opt/local/lib/php/extensions/no-debug-non-zts-20090626
  PEAR directory                 php_dir          /Applications/MAMP/bin/php5.3/share/pear
  PEAR Installer cache directory cache_dir        /private/tmp/pear/cache
  PEAR configuration file        cfg_dir          /Applications/MAMP/bin/php5.3/cfg
  directory
  PEAR data directory            data_dir         /Applications/MAMP/htdocs/pear
  PEAR Installer download        download_dir     /tmp/pear/install
  directory
  PHP CLI/CGI binary             php_bin          /opt/local/bin/php
  php.ini location               php_ini          &lt;not set&gt;
  --program-prefix passed to     php_prefix       &lt;not set&gt;
  PHP's ./configure
  --program-suffix passed to     php_suffix       &lt;not set&gt;
  PHP's ./configure
  PEAR Installer temp directory  temp_dir         /tmp/pear/install
  PEAR test directory            test_dir         /Applications/MAMP/bin/php5.3/tests
  PEAR www files directory       www_dir          /Applications/MAMP/bin/php5.3/www
  Cache TimeToLive               cache_ttl        3600
  Preferred Package State        preferred_state  stable
  Unix file mask                 umask            22
  Debug Log Level                verbose          1
  PEAR password (for             password         &lt;not set&gt;
  maintainers)
  Signature Handling Program     sig_bin          /usr/local/bin/gpg
  Signature Key Directory        sig_keydir       /opt/local/etc/pearkeys
  Signature Key Id               sig_keyid        &lt;not set&gt;
  Package Signature Type         sig_type         gpg
  PEAR username (for             username         &lt;not set&gt;
  maintainers)
  User Configuration File        Filename         /Users/*removed*/.pearrc
  System Configuration File      Filename         /opt/local/etc/pear.conf
  </code></pre>
  
  <p>There are lots of references to /Applications/MAMP/ folder structure which I had deleted (and mysteriously keeps regenerating). I would like to remove all these references but not sure what substitute values should be. I cannot seem to uninstall pear or upgrade pear.</p>
  
  <p>Ideally I would like a situation where pear remains installed and PHPUnit is installed so that I can run some tests.</p>