The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server cache for shared hosting?

Discussion in 'Workarounds and Optimization' started by Forcerdj, Sep 6, 2016.

Tags:
  1. Forcerdj

    Forcerdj Well-Known Member

    Joined:
    Nov 30, 2009
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    8
    Hi,

    I use WHM/cPanel to manage my shared hosting clients from my dedicated server. One of my clients has requested some caching functionality to help improve the performance of their Wordpress website.

    In this case they're using W3 Total Cache and complaining the only caching method available is Disk which wont provide much of a performance boost at all on non-SSD.

    My question is: is it safe for me to install something like xCache and let clients use it? or it something I would generally manage? I'll be honest i've not worked with caching much in the past. What are the implications on the server? high memory usage? what about recommendation configurations phphandler->caching software?

    Thanks :)
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    I will suggest you please install FastCGI + XCache on your server. It will definitely increase your server performance.
     
  3. Forcerdj

    Forcerdj Well-Known Member

    Joined:
    Nov 30, 2009
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    8
    Thanks for the information, I will give it a go.
     
  4. Forcerdj

    Forcerdj Well-Known Member

    Joined:
    Nov 30, 2009
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    8
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, it's acceptable to use XCache with EasyApache 3. The corresponding documentation is found at:

    PHP Options - EasyApache - cPanel Documentation

    Thank you.
     
  6. Forcerdj

    Forcerdj Well-Known Member

    Joined:
    Nov 30, 2009
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    8
    I am wondering if you can help me further.

    I switched to FastCGI and get Internal Server Error on all websites.

    I understand FastCGI needs configuring first so I edited /etc/httpd/conf/php.conf and put in some default values:

    Code:
    MaxRequestsPerProcess 1000
    FcgidMaxProcesses 200
    FcgidProcessLifeTime 7200
    MaxProcessCount 500
    FcgidIOTimeout 400
    FcgidIdleTimeout 600
    FcgidIdleScanInterval 90
    FcgidBusyTimeout 300
    FcgidBusyScanInterval 80
    ErrorScanInterval 3
    ZombieScanInterval 3
    DefaultMinClassProcessCount 0
    DefaultMaxClassProcessCount 3
    MaxRequestLen 20468982
    This didn't work so I used the settings from information I found on CloudLinux blog

    Code:
    FcgidMinProcessesPerClass 0
    FcgidMaxProcessesPerClass 8
    FcgidMaxProcesses 150
    FcgidIdleTimeout 60
    FcgidProcessLifeTime 120
    FcgidIdleScanInterval 30 
    after restarting apache again nothing worked.

    Thanks
     
  7. Forcerdj

    Forcerdj Well-Known Member

    Joined:
    Nov 30, 2009
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    8
    Just a follow up I got it working again by running command:

    cagefsctl --force-update

    I am using the following settings as recommended from the CloudLinux blog:

    Code:
    FcgidMinProcessesPerClass 0
    FcgidMaxProcessesPerClass 14
    FcgidMaxProcesses 300
    FcgidIdleTimeout 60
    FcgidIdleScanInterval 30
    FcgidProcessLifeTime 120
    This is stored in post_virtualhost_2.conf

    I am noticing memory usage is a little higher but server load lower.
     
    cPanelMichael likes this.
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I'm happy to see it's now working. Thank you for updating us with the outcome.
     
Loading...

Share This Page