Tuesday, March 25, 2008

PEAR Web Installer

Here is a quick tutorial on how to install PEAR's WEB Frontend installer.

1) Shell command: pear install PEAR_Frontend_WEB
2) Create file pear.php in the desired web directory with the following content:

I suggest putting this file in a separate folder with proper web server access permissions (i.e. htaccess, htpasswd etc.)
3) Adjust directory permissions for the PEAR system folders download and temp (on my LINUX system, these are located in /tmp/pear)
4) Adjust directory permissions for the PEAR classes folder (on my LINUX system, these are located in /usr/share/pear)

2 comments:

  1. % pear install PEAR_Frontend_WEB
    PHP Warning: Module 'pcre' already loaded in Unknown on line 0
    PHP Warning: Module 'xml' already loaded in Unknown on line 0
    Failed to download pear/PEAR_Frontend_WEB within preferred state "stable", latest release is version 0.7.2, stability "beta", use "channel://pear.php.net/PEAR_Frontend_WEB-0.7.2" to install
    Cannot initialize 'channel://pear.php.net/PEAR_Frontend_WEB', invalid or missing package file
    Package "channel://pear.php.net/PEAR_Frontend_WEB" is not valid
    install failed

    ReplyDelete
  2. PEAR_Frontend_WEB is currently only available in beta. One must use the command pear install PEAR_Frontend_WEB-beta until it gets a stable mark.

    ReplyDelete