Jan 13, 2016
23
6
3
Istanbul, Turkey
cPanel Access Level
Root Administrator
(sorry for the long post)

I had performance and stability issues on my relatively low level (XEON 4 cores, 2 GB RAM, SAS disks) cPanel VPS (Centos 5.11 WHM 56) server, thus I moved to a much better VDS (i7-2600, 16 GB RAM, SSD, 100 Mbps interface). SW reached end of life anyways... Current configuration has CENTOS 6.8 x86_64 vmware – WHM 58.0 (build 31).

Currently I'm hosting about 10-13 Joomla 1.5i, 2.5, 3.x sites. Traffic is considerably low (mostly 250-300 individual visitors/month, top one is 20.000 visitors/month).

I used EA4 with cPanel Worker MPM and customized options for my needs. I did set security measures (cpHulk, PHP, ClamAV, CSF) but did not optimize anything yet (server is up for less than a day now). Joomla installations are already optimized (with default caching, expires headers, gzip, ...).

When testing vanilla server (freevps bench & SysBench 0.4.12) I get very good results, as expected.

On the other hand, when I test the web sites with PageSpeedGrader, the results did not change according to my expectations (done at night time, several times).

A web site with empty index.html doubled the speed (to 0.71 sec), but in the worst case the speed increase is only %15 (7.05 sec). Average of 12 websites speedup is ~50%.

Testing with bytetest.com, time to first byte is between 0.297 to 0.562 seconds.

When I look at the waterfall in the worst performing website (pagespeedgrader.com):

0.649 sec GET mydomain.com
2.020 sec GET www.mydomain.com/joomladir
...
Global result: 7.01 sec

If I repeat the results I get similar results.

As you can see I have an .htaccess with 301 redirection. Although any additional stuff is Jomla related, these first two items must be server & location related.

----------

The old server was running suExec & fcgi, but with EA4 we have limited options (no fcgi, caching, nginx etc support, what else?) for configuration (yet) as far as I can see...

I'll optimize Apache and MySQL but I think they wont make much a difference in my case (high server specs and low load conditions).

I'll greatly appreciate any recommendations for this. It might help other admins using Joomla as well. I could not find any directions in the last couple days.

Thank you in advance...
 

SysSachin

Well-Known Member
Aug 23, 2015
604
49
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

I think It's good if you have use PHP-FPM on your server for websites performance.
 
  • Like
Reactions: Harikalar Kutusu

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Hello,

Support for PHP-FPM is offered in cPanel version 60:

Extended PHP-FPM support
In cPanel & WHM version 60, we enabled the ability to set up and manage MultiPHP FPM pools in WHM's MultiPHP Manager interface (Home >> Software >> MultiPHP Manager). These pool options enable site configuration and for PHP-FPM to handle any incoming PHP requests that their domain receives. PHP-FPM increases the performance of the site with additional server resources. WHM's MultiPHP Manager interface (Home >> Software >> MultiPHP Manager) now prompts a user to install specific packages if their system does not contain the appropriate FPM dependencies.
The full release notes are available at:

60 Release Notes - Documentation - cPanel Documentation

Information on updating cPanel/WHM, and information on the build/release process is available at:

How can I update cPanel & WHM?
Product Versions and the Release Process - cPanel Knowledge Base - cPanel Documentation

Thank you.
 
  • Like
Reactions: Harikalar Kutusu
Jan 13, 2016
23
6
3
Istanbul, Turkey
cPanel Access Level
Root Administrator
Thank you for clarification... I'll wait for v60 for PHP-FPM then.

Other than that, any ideas how I can speed up initial server response as of v58?

As I removed HW issues it must be configuration related...

Thank You...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
You mentioned already optimizing the server for Joomla, but there's a third-party URL here you may find helpful:

Optimizing Joomla

Thank you.
 
Jan 13, 2016
23
6
3
Istanbul, Turkey
cPanel Access Level
Root Administrator
I want to update for others seeking similar information.

I didn't touch Joomla installations in any way, as they were already optimized in the old server. But after a lot of research I decided to use mod_pagespeed and after a lot of tuning and testing the total speedup from the old server is a bit more than 2x on the average...

I used lossless JPG compression connected to a cron, but it has minimal effect as the images we prepared were mostly optimal.

mod_pagespeed's two settings were very successful on performance:

1) Re-compressing images taking the user viewport into account and caching them. Of course it is degrading the JPG quality but it was minimal...

2) Lasy loading images. We was using similar in some installations but enabling it serverwide was good to get the first view on the screen ASAP.

I have some plugins in Joomla installations which are doing similar optimizations, I'll remove them to not to process stuff twice...
 
  • Like
Reactions: cPanelMichael