HI,
I am using Openlitespeed with Cyberpanel. Cyberpanel has two sections, One is PHP Tuning and the other is Litespeed tuning.
There are many options and IDK what to enter in each field. I have read many forums but no one clearly mentions the best tuning settings.
My WordPress site has traffic of around 5000 users every day. I am using a web server with 8 Core CPUs and 16 GB of Memory. AWS c4.2xlarge instance type.
I want to optimize my website as MySQL usage sometimes crosses 300%. Cpu usage is very high bcoz of MySQL. Please help me in optimizing my website.
Is there any official way of contacting openlitespeed other than forums?
PHP Version - 8.1
I am getting 79 PHP Deprecated errors for plugins. What to do?
|Deprecated|Return type of FS_Key_Value_Storage::offsetExists($k) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice|1|+
It’s worth doing a cleanup and optimise of the database to start with, if the site has been around a while and has a lot of posts, revisions, comments, and has been through lots of changes of plugins and options then there is bound to be a load of stuff in there that can be cleaned up.
Also converting tables to InnoDB from MyISAM in case of any of them are.
You can do all of that from the LS Cache plugin.
NOTE: Do back up the database first obviously just in case.
It is made by a couple mysql experts. It adds indexes to your tables to allow for more efficient queries.
Also connect your cyberpanel to cyberpanel cloud and do the database optimization tool - it’ll set some configuration settings based on things like your server memory amount.
Finally, try using php 7.4 - a lot of plugins aren’t ready for 8.0,let alone 8.1
I really wish there was more information here and elsewhere about tuning litespeed itself though - I’ve never found any useful info at all about this.
Thank you!
I will try all the methods listed here.
After changing the PHP version from 8.1 to 8. Everything is OK. Even when I was receiving around 200 page views a minute, the overall usage was around 30%. I normally get 50-60 page views per minute.
I migrated the website from Apache to Litespeed and earlier my PHP version was 7.4. So might be some compatibility issues.