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/trunk/Console/Getopt.php', );
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.
[absolutepath]is your account's absolute path. For more information, see Find your absolute path.
index.phpthat 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.