Installing PEAR on BlueHost

Sharing is Caring

PEAR as I’m sure you’re aware stands for “PHP Extension and Application Repository” and is one of the leading frameworks for reusable components.

Installing BlueHost can be easily be accomplished using the Fantastico located inside your Cpanel access. The configuration of PEAR can be quite a challenge though!

The PEAR installation as I’m sure you’ve seen already is extremely simple. Configuration will require modifying your php.ini file. If you don’t have a php.ini file in /public_html you will need to follow the following steps.

  1. Log into Cpanel. Click PHP Config
  2. Click Install PHP.INI Master File

Now that you have a php.ini file that we can modify you will need to find the line include_path. In my php.ini file it is line 503. Change the include_path to the following making not that you will need to replace the # number with your potential number, and {{YOURBLUEHOSTUSERNAME}} should be your bluehost username without the domain name.

If you don’t know these details you can find them under the main page of Cpanel under Stats, Home Directory.

include_path = ".:/usr/lib64/php:/usr/lib/php:/home#/{{YOURBLUEHOSTUSERNAME}}/php"

Some of the core PEAR packages aren’t always installed. For example, I’ve had to go back into the PEAR Config form and search for Mail and install it.

Hope this helps!

Sharing is Caring

Brian is a software architect and technology leader living in Niagara Falls with 13+ years of development experience. He is passionate about automation, business process re-engineering, and building a better tomorrow.

Brian is a proud father of four: two boys, and two girls and has been happily married to Crystal for more than ten years. From time to time, Brian may post about his faith, his family, and definitely about technology.