The file PEAR provides (go-pear.php
) currently has a bug that prevents its default implementation from working. We have steps to correct it outlined in this article, but it requires manually modifying the default code. We provide this information as a courtesy and neither guarantee nor support its operation.
PEAR is a structured library of open-source code for users of PHP. The installation requires a specialized file named go-pear.php, which is a modification of your php5.ini file. You also need to password protect the directory you create for the PEAR admin.
$bootstrap_files = array( 'PEAR5.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR5.php', 'PEAR.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR.php', 'Archive/Tar.php' => 'https://raw.githubusercontent.com/pear/Archive_Tar/master/Archive/Tar.php', 'Console/Getopt.php' => 'https://raw.githubusercontent.com/pear/Console_Getopt/master/Console/Getopt.php',);
Note: This installer creates an index.php in the root and overwrites any existing index.php files. To avoid accidental overwrite, you can temporarily rename the current index.php before running the go-pear.php script.
index.php
that the PEAR installer created to the new directory. The directory is the path for your PEAR admin.After installing PEAR, you can install modules by going to the PEAR admin at coolexample.com/pearadmin, where coolexample.com is your domain name.