Ideal Tuning Settings For Ubuntu Server

Hello, I am using Openlitespeed on Digital Ocean Computer Optimized Droplet of 4 vCPU and 8 GB RAM.

What shall be the appropriate tuning settings for PHP and OpenLitespeed for best performance?

Also, what percentage of RAM shall I share with WordPress and PHP.

Thank you.


The default settings are good for most scenarios. Probably no need to change things unless you hit any limit.
It might bring you some ideas after doing some benchmarks.