# Installing Modules On cPanel For WHMCS - IonCube, FileInfo & Soap

<span style="text-decoration: underline; color: rgb(0, 0, 0);">**IonCube**</span>

- <span style="color: rgb(0, 0, 0);">Go to <span style="color: rgb(176, 19, 243);">*/opt/cpanel/ea-php81/root/usr/lib64/php/modules*</span> **(PHP 8.1)** and unzip the tar you download from [<span style="color: rgb(0, 58, 255);">here</span>](https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz) with the .so file. (The loaders from their website)</span>
- <span style="color: rgb(0, 0, 0);">Then in <span style="color: rgb(176, 19, 243);">*/opt/cpanel/ea-php81/root/etc/php.d*</span> **(PHP 8.1)** put **nano 00-ioncube.ini** and put in <span style="color: rgb(0, 139, 255);">*zend\_extension = /opt/cpanel/ea-php81/root/usr/lib64/php/modules/ioncube\_loader\_lin\_8.1.so*</span></span>
- <span style="color: rgb(0, 0, 0);">Once done, you need to **systemctl restart ea-php81-php-fpm**.</span>

<span style="color: rgb(0, 0, 0);"><span style="text-decoration: underline;">**<span style="color: #000000;">Soap</span>**</span></span>

- <span style="color: rgb(0, 0, 0);">Copy the **soap.so** file from a normal PHP-8.1 install in the location <span style="color: rgb(176, 19, 243);">*/usr/lib/php/20210902*</span> **(PHP 8.1)** and put it into <span style="color: rgb(176, 19, 243);">*/opt/cpanel/ea-php81/root/usr/lib64/php/modules*</span> **(PHP 8.1)**.</span>
- <span style="color: rgb(0, 0, 0);">Then in <span style="color: rgb(176, 19, 243);">*/opt/cpanel/ea-php81/root/etc/php.d*</span> **(PHP 8.1)** put **nano 00-soap.ini** and put in <span style="color: rgb(0, 139, 255);">*extension=soap.so*</span></span>
- <span style="color: rgb(0, 0, 0);">Once done, you need to **systemctl restart ea-php81-php-fpm**.</span>

<span style="text-decoration: underline; color: rgb(0, 0, 0);">**FileInfo**</span>

- <span style="color: rgb(0, 0, 0);">Login to WHM (Not cPanel client side, WHM's admin side).</span>
- <span style="color: rgb(0, 0, 0);">Search for "Software" along the left side and find "EasyApache4".</span>
- <span style="color: rgb(0, 0, 0);">Click the button that says Customize next to Currently Installed Packages.</span>
- <span style="color: rgb(0, 0, 0);">Click PHP Extensions along the left hand side in blue (3rd option down).</span>
- <span style="color: rgb(0, 0, 0);">Search for Fileinfo in the search bar in the top left and click the toggle on the PHP-8.1 version.</span>
- <span style="color: rgb(0, 0, 0);">Click Review.</span>
- <span style="color: rgb(0, 0, 0);">After looking over the proposed changes, scroll to the bottom of the screen and click provision.</span>
- <span style="color: rgb(0, 0, 0);">Once done, you need to **systemctl restart ea-php81-php-fpm** in terminal.</span>

<span style="color: rgb(0, 0, 0);">***Referenced from:** <span style="color: rgb(0, 58, 255);">[https://support.cpanel.net/hc/en-us/articles/1500000107181-How-do-I-install-Fileinfo-](https://support.cpanel.net/hc/en-us/articles/1500000107181-How-do-I-install-Fileinfo-) </span>*</span>

**<span style="color: rgb(0, 0, 0);">If you wish to install extensions for a user of cPanel but don't want to install these extensions globally, follow:</span>**

- <span style="color: rgb(0, 0, 0);">**Example below is for soap extension**</span>
- <span style="color: rgb(0, 0, 0);">Go into that user with su in terminal or use the cPanel’s terminal page.</span>
- <span style="color: rgb(0, 0, 0);">Run **pear**, this will give you results. Run **pear install Archive\_Tar** to install tar.</span>
- <span style="color: rgb(0, 0, 0);">Run **pear install PEAR** to install Pear required for SOAP to install. ***Ironic. Lmfao***. </span>
- <span style="color: rgb(0, 0, 0);">Run **pear install soap** then install using the channel link. </span>
- <span style="color: rgb(0, 0, 0);">**Note**: You might need to use **--force** on some of the commands as the tar version of 1.4.14 breaks soap install.</span>

---

<span style="color: rgb(0, 0, 0);">**Note:** On all instances above, you can restart Apache's FPM in the WHM interface instead of the command by searching "Services" in the top left then finding "Apache FPM".</span>