Bluehost Web Hosting Help
PHP PECL Packages
This article will show how to view which PECL packages are alredy installed, as well as show you how to install additional package.
Viewing Currently Installed PECL Packages
To view the PECL Packages currently installed, you will need ssh access.
If you need to enable SSH access please see our article, SSH Access.
Once you have logged in via SSH, enter the following command:
Installing New PECL Package
You can download and install PECL packages locally to your account. You'll need SSH access. Once you're logged in, these are steps for installation:
- Create a folder in your home directory to download and compile the packages in.
- Create a directory for you php extensions to be located in. Something like ~/php/extensions.
$ mkdir ~/php )
$ mkdir ~/php/extensions
- Change directories to that created pecl directory and run the following command:
pecl download <packagename>********************** For multiple PECL packages, repeat steps 4-9 and then step 12 *****************
- That will download the package which you'll then need to untar with:
- Change directories to the extracted directory and run the phpize command
- When that's done, run the following command from inside the module folder
./configure --prefix=$HOME/pecl/<packagedirectory> ( you can find the directory to use by typing pwd inside the package directory)
- If that runs without error, then the package should be compatible with our environment. If it completes successfully, run the following command from individual module directory
- That will create the module file that you'll need to put in your php.ini. It'll be located in the modules directory and will be named <packagename>.so
- Copy the .so file to your ~/php/extensions directory that you created.
cp <packagename>.so ~/php/extensions
- Copy the existing server-installed extensions from /usr/lib64/php/modules/ to the ~/php/extensions directory:
cp -rf /usr/lib64/php/modules/* ~/php/extensions/
- Edit your php.ini file in public_html (assuming you're on single php.ini mode from the php config icon in the cpanel) and change the extension_dir setting to the full path to your ~/php/extensions directory
extension_dir = "/home<#>/<username>/php/extensions"
- Add the extension to your php.ini file. It'll look like:
Recommended Help Content
PHP PEAR Packages
This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages.
VPS or Dedicated Hosting - Installing PHP APC
This tutorial will help you be able to install the PHP PECL package APC. (Alternative PHP Cache)
WHM - Add a New Package
How to create a new package through the WHM
Related Help Content
Adding Handlers to change your PHP Version
This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Reseller - Add a package
How to create a package on your Reseller account.
PHP information page
How do I view the php information page?
Getting Started Wizard After you have installed phpBB, please use the administrative link provided in SimpleScripts to access the login area. Enter the Admin Username you selected when installing php
WordPress Install Without Automatic Database Creation
This article explains how to install WordPress when Mojo is unable to create the database automatically.
WordPress - Install a new Theme
Install Themes These steps will help you install and select a WordPress theme for your blog. Inside the WordPress Dashboard, select the Add New Themes link in the Appearance Menu. You can search for
VPS or Dedicated Hosting - Using yum
How to use the yum package mnager to install and update applications and programs.
Install WordPress using Marketplace
We provide a program which makes it very easy to install third party scripts to your hosting account. If you want your website to have a WordPress blog, you can use MOJO Marketplace to install WordPres