Jump to content

Caching Tools to Improve WHMCS Performance


Recommended Posts

  • 2 years later...

I'm sure you got your question answered--this is for anyone else trying to fix their WHMCS after enabling OPcode cache/OPcode caching/Zend OPcache (dropping in some SEO key words). I'm struggling to get WHMCS cron jobs running again after enabling OPcache.

I've had to comment out some of these lines just to log in (I think 2FA in my WHMCS admin login was clashing with Litespeed or OPcache);

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)

# These php module parameters are breaking WHMCS admin logins
# <IfModule php8_module>
#    php_value date.timezone "America/Boise"
#    php_flag display_errors On
#    php_value max_execution_time 300
#    php_value max_input_time 600
#    php_value max_input_vars 1000
#    php_value memory_limit 512M
#    php_value post_max_size 500M
#    php_value session.gc_maxlifetime 1440
#    php_value session.save_path "/var/cpanel/php/sessions/alt-php81"
#    php_value upload_max_filesize 200M
#    php_flag zlib.output_compression On
# </IfModule>

# These Litespeed module parameters might also be breaking WHMCS
<IfModule lsapi_module>
   php_value date.timezone "America/Boise"
   php_flag display_errors On
   php_value max_execution_time 300
   php_value max_input_time 600
   php_value max_input_vars 1000
   php_value memory_limit 512M
   php_value post_max_size 500M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/alt-php81"
   php_value upload_max_filesize 200M
   php_flag zlib.output_compression On
</IfModule>

# END cPanel-generated php ini directives, do not edit

I really wish WHMCS supported Litespeed/OPcache, or at least made it more obvious that they don't. This have been an expensive nightmare to resolve.

Link to comment
Share on other sites

  • 2 weeks later...

I don't beleive there are any problems with WHMCS and the above lines, they're all fairly normal although the values seem way too high and won't protect your server from problems.  (eg: who would be uploading a 200mb file to WHMCS?),

I can't comment further as you didn't bother to say what wasn't working and what the errors were, both of which are essential to helping others or getting help here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated