Segmentation Fault Errors
On this page
Problem
You see the following error:
Segmentation fault
Cause
This error does not directly relate to the WHMCS software and can occur for many different reasons. It most commonly indicates that PHP is crashing and suggests there is an issue with your PHP installation. For example, this error often occurs because the OPcache PHP extension is enabled and is malfunctioning.
Troubleshooting
Investigate your PHP configuration to find the error. You may want to use the strace
utility.
To determine whether the error is due to a problem with the OPcache
PHP extension, temporarily disable the extension by adding -d opcache.enable_cli=0
to your system cron command. For example:
/path/to/php -q -d opcache.enable_cli=0 /path/to/whmcs/crons/cron.php
If the error does not occur again after running this command, the problem is the OPcache
PHP extension.
Solution
Make the necessary changes to resolve the issue in your PHP configuration.
Last modified: December 4, 2024