How to Add a PHP Module

How to Add a PHP Module

To login to your cPanel account, you can login via 

  • https://yourdomain.com.au/cpanel (your actual domain) or;
  • via MyToolbox.

Your cPanel username and password would have been sent to you in the email when you signed up with us, subject titled “New Account Information“. If you have misplaced this email, please contact us and we are happy to resend you this email.

Sometimes websites require different modules to function correctly such as MYSQLi, mcrypt or the Zend Guard Loader. Unfortunately, if you are on Plesk (Windows), this won’t work.


Step 1: Once logged in, scroll down to “Software

Step 2: Click on “Select PHP Version

If your Current PHP version is 5.6 (Native), you will need the change the PHP version in the PHP version to at least 7.4 if you don’t know which version you need and press “Apply“. 

 

Step 3: Select the Extensions tab and a list of modules will be displayed. Ensure you have selected the current PHP version. If you need to change this you can do so from the drop down menu and then click Apply to save. You can then proceed and select/deselect the modules you need.

 

Perth Web Hosting recommends enabling the following PHP extensions:

  • Fileinfo
  • Igbinary
  • Imagick
  • Intl
  • Memcache
  • Memcached
  • Opcache
  • Zip


These PHP extensions are recommended and will be suitable for most websites.
Please note however that some plugins, themes, and custom code may require different PHP extensions enabled.

Once you have enabled and saved your required extensions, select the Options tab.

Perth Web Hosting recommends using the following settings:

  • memory_limit: 512MB
  • post_max_size: 32MB
  • upload_max_filesize: 32MB
Last Updated September 7, 2023