Skip to main content

Proper server configuration questions

Comments

4 comments

  • cPanelMichael
    I tried installing http2 but I continuously broke the server or didn't work so I stopped trying

    Hello, This isn't yet supported with EasyApache 4. You can find the feature request on the following URL: EasyApache 4 HTTP2 Support I encourage you to vote and add feedback to this feature request if it's something you'd like to see added in the future. Thank you.
    0
  • TheNewb
    I will vote it up obviously, I thought maybe there was a way to implement it using ssh. While waiting for support what configuration would you recommend when building Apache via ea4 to get the best performances for the type of server I need?
    0
  • cPanelMichael
    Hello, It's difficult to determine what's best for performance, as the usage on each server is different. You mentioned WordPress, so you may find the following URL helpful: WordPress Optimization " WordPress Codex You can also find a list of system administration services on the following URL if you don't receive sufficient use-feedback: System Administration Services | cPanel Forums Thank you.
    0
  • Mark Croxton
    If you need http2 support right now and everything optimized and secure 'out of the box' - and you don't need to manage client email - I can highly recommend ServerPilot with the SSD cloud host of your choice (sorry cPanel!). That said, cPanel can be configured to be as fast or faster than the defaults in Serverpilot (excepting http2). And there are important advantages to cPanel's more conservative approach, such as stability over the long term and the excellent support. Having just spent a few weeks optimising and load testing a new server, this is what I'd suggest for maximum possible performance from cPanel, without using plugins: EA 4 build: mod_mpm_event PHP-FPM MariaDB Almost all Apache configs you will find online are for the prefork mpm. This article shows you how to properly configure event mpm: Tuning/Optimizing Apache on cPanel Servers - Northon Torga Be sure to tweak max_children in the pool options for each of your accounts. If your error logs for the account say max_children reached, increase the value in small increments until the messages stop. As important for performance is getting your MySQL config right. Particularly if your databases are Innodb. I found that these two suggestions made the most significant difference under load: How large should be mysql innodb_buffer_pool_size? Possible to make MySQL use more than one core? In addition to this, set innodb_buffer_pool_instances to the number of cores you have, to make best use of them. As for Varnish, I'd avoid it and other plugins if you don't really need them as it adds significant complexity and a potential point of failure. You can gain similar or better performance by using a CDN for your static assets or putting your sites behind Cloudflare, either of which will give you far less trouble over the long term (Cloudbleed excepted!). That said, this looks promising: xVarnish - Varnish Simplified Finally, make sure you load test your changes and tweaks with a very long list of urls from your various sites. Siege is handy for this: Siege Home
    0

Please sign in to leave a comment.