How to install/uninstall php extensions in cpanel.

share on:
install php extensions in cpanel

Php is very powerful language but sometimes you may need to include certain  extensions to achieve your programming goals. PHP extensions are compiled libraries which enable specific functions to be used in your PHP code.

In cPanel PEAR, which stands for PHP Extensions and Applications repository, interface can be used to add extra extensions. To know how to add these extensions  into PHP via cpanel, follow these steps.

 

Login to your cPanel account.
How to install and uninstall PHP Extensions through the Cpanel.

 

Once you logged in , Go to Software section and click PHP PEAR packages.

How to install and uninstall PHP Extensions in Cpanel.

 

 

Install/Uninstall php extensions.

 

Next page is PEAR installer page. Here you will see lots of things like Module include path, Fields to search and install php packages.

At the bottom part of page you will see list of  installed module names and options to update, reinstall or uninstall them.

How to install and uninstall PHP Extensions in Cpanel.

 

Now let’s say you want to install XML_Parser extension ( outdated extension, just for sake of example ) , then you can either use the search button or use Show Available Modules .

We will use search option to find XML_Parser , you should enter the package name you want to install.

How to install and uninstall PHP Extensions in Cpanel.

 

click Go you will see something like this. Click Install to install the package.

How to install and uninstall PHP Extensions in Cpanel.

 

It will start installing the PHP Extension.

How to install and uninstall PHP Extensions in Cpanel.

 

Installation of PHP extension is complete.

How to install and uninstall PHP Extensions in Cpanel.

 

The installed Module will be shown in the PEAR Installer front page. Now if you want to uninstall any package, let’s say we want to uninstall XML_Parser, just click Uninstall.

How to install and uninstall PHP Extensions in Cpanel.

 

Un-Installation process begins.
cpanel-uninstall

 

That’s all you need to know on how to install and uninstall any PHP Extension in cPanel.

If you want to know how to compile php extensions like mbstring, zip, Mod SuPHP, Mod Security , XCache or any other extension with easyapache than read this post.

If you enjoyed this post, I’d be very grateful if you’d help it spread by emailing it to a friend, or sharing it on Twitter or Facebook. Thank you!

share on:
engy

engy

Hello there, My name is Rishi Guleria and I work as a Linux system administrator. I have created this blog to share what I have learned so far and to learn new things. Don't forget to leave the feedback. Have a great day. :)

Leave a Response

share on: