Sometimes when a PHP script doesn't work as intended, we may need to debug an application. This article will go through a few of the more common issues to ensure that you are in the right direction.
PHP Modules not working on Website
You may need to go through and make sure that the PHP module in question is installed. You can do this which the following command:
/opt/cpanel/ea-phpXX/root/usr/bin/php -i | grep XX
Note: Please make sure to replace the first XX with the PHP version you need and the second XX with the PHP module you are testing for.
Error: /usr/bin/php: error while loading shared libraries: libkeyutils.so.1: failed to map segment from shared object: Cannot allocate memory
This issue appears commonly after switching over to suPHP, though the library name in error can be different. To resolve this, you will need to remove RLimits. You will need to check and remove the RLimit lines on the following. files:
Once that has been set, you can go through and distill with /usr/local/cpanel/bin/apache_conf_distiller --update --main, rebuild, then make sure the RLimits are still gone. After that, restart Apache, and things should be working again.
Sometimes, you may run into an issue with WordPress showing up as a white page; this article should help narrow things down for you:
This article will have some tips and tricks for you as well if a website is not loading correctly for you:
Please keep in mind that cPanel does not generally assist with these issues. We're happy to help as much as possible, but our technical analysts aren't replacements for a qualified systems administrator. We've provided the data and information that will help you carry on to the next step.
I certainly understand that not everyone has a Systems Administrator.
For a list of System Administration Services, feel free to reference our public services list available here: System Administration Services
However, please note that cPanel cannot be held liable for any services performed by third-party providers.