InMotion Hosting Support Center


Most business-class hosting servers now come equipped with a PEAR installer via cPanel to allow you to install custom PEAR modules. If you are on a business-class hosting plan (Launch, Power, or Pro) and are on a server that does NOT have this feature enabled, please contact to request to be moved to a newer server.  VPS and dedicated server customers can ask to have this feature enabled at no extra charge.

Custom Installations:

User Submitted: Jim Frenette Web Developer,

This is an article submitted by one of our customers that explains how to set up your own installation of PEAR for php, which in turn will allow you to install your own PEAR modules.

Please note: InMotion Hosting can only provide LIMITED support for third-party softwares, customer installations, etc. We are limited to providing server-side variables only.

First, create a directory outside your public_html called "pear." This folder should be world-readable and writable, which will require permissions of 777. Then, create another folder in your public_html. You can choose the name of this folder, but you may want to password-protect it to restrict access to its files. For purposes of this demonstration, the folder we are creating is called "pear-inst"

How to Password-Protect a Directory

Go to and copy the contents of that page into a Notepad file called " This is the main installation file. From here, the only field you should need to edit is the installation prefix, which will be the absolute path to the '


'userna5' is your InMotion username. You will also want to set the php CLI path in question 11. The path to the php binary is /usr/bin/php. Once the installation is complete, you now have your own instance of Pear installed on your site. You will need to make sure to set the include path in your php scripts to reflect that of your installation, and not the one on the server:

set_include_path('../../pear/PEAR' . PATH_SEPARATOR . get_include_path());

From here you can also install your own pear packages. To do this, you can create a file called "install.php" in your pear-inst directory and add this code:

include_once "../../pear/index.php";

When you load this page in a browser ( you will see the standard PEAR installation interface, where you can install your own PEAR modules. For security purposes, you will want to set the permissions of the pear directory to 755 when you are done installing PEAR and other modules. 

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

n/a Points
2018-03-28 2:29 pm

I followed the instructions as well and received the same error message on line 697.  I would suspect that the instructions need to be re-examined and corrected.

42,829 Points
2018-03-28 4:20 pm

Sorry for the problems with the PEAR installation. These instructions have been screened multiple times and verified that they work. If you are having problems then it may be related to another factor. Please contact our live technical support team for further assistance. They are available 24/7 and can be contacted via email/phone/chat as per the information at the bottom of the page.
n/a Points
2014-05-13 9:16 pm

It goes to 21% and throws an exception:


Bootstrapping Installer...................Bootstrapping PEAR5.php............(remote) okBootstrapping PEAR.php............(remote) okBootstrapping Archive/Tar.php............(remote) okBootstrapping Console/Getopt.php............(remote) ok Fatal error: Class 'PEAR' not found in /home/*redacted*/public_html/pri/go-pear.php on line697

42,829 Points
2014-05-13 9:28 pm
Hello Serosis,

Sorry to hear that you're having problems with the installation. You have not provided enough information to check your account. If you are having problems with the installation of a PEAR module, then please provide more specific detail (account user name/domain name would help). If you want to handle this issue privately (posts on the cx support center are public), then contact our live technical support team via phone/chat/ticket.

Arnel C.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

4 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!