Kiwihosting Support Forum: Installing PEAR - Kiwihosting Support Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Installing PEAR

#1 User is offline   Kiwihost 

  • Group: Admin
  • Posts: 2369
  • Joined: 27-October 02

Posted 03 December 2009 - 06:12 PM

To install PEAR onto a domain hosted on our HELM Servers please use the following procedure

1) Download the go-pear.php script from http://pear.php.net/go-pear and save to your WWWROOT folder as go-pear-php
2) Execute the go-pear.php page and accept the default settings
3) Once this has finished it will create an index.php page in your root directory, this is the web based package installer, you will need to edit this file

locate the $pear_user_config variable and ensure it is pointing to
$pear_user_config = 'c:\domains\yourdomainname\wwwroot/pear.conf';

locate the $pear_dir variable and ensure it is pointing to
$pear_dir = 'C:\Domains\mydomain.com\wwwroot/PEAR';

4) Load index.php in your browser to run the PEAR Package installer and install the packages you need
5) When including your PEAR modules in code, you will need to add PEAR/ to the front of the include statement eg use include('PEAR/Mail/mimeDecode.php'); instead of include('Mail/mimeDecode.php');

Once you have installed the packages you require we recommend deleting or obfuscating the PEAR Package Manager index.php file.
Kiwihosting.net Ltd
NZ Web Hosting Specialists
http://www.kiwihosting.net.nz

#2 User is offline   Yochana 

  • Group: Customers
  • Posts: 41
  • Joined: 23-March 04

Posted 04 December 2009 - 02:22 AM

Forgive my ignorance, but what benefits would installing PEAR provide?

#3 User is offline   Kiwihost 

  • Group: Admin
  • Posts: 2369
  • Joined: 27-October 02

Posted 04 December 2009 - 03:21 AM

I'd recommend having a look at what PEAR is and how it can be used here http://en.wikipedia....tion_Repository

99% of customers will probably never have a need to use or install PEAR.

I've really just posted this as a how-to reference document for those who may need it as we don't currently have a working shared PEAR install.
Kiwihosting.net Ltd
NZ Web Hosting Specialists
http://www.kiwihosting.net.nz

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users