Please I need help with my system.
Just 3 days ago I started experiencing database error and this happens often and when I restart system it goes away.
Please what can be the cause of this issue.
Currently my sites are offline and can only get back when I restart the system.
Meanwhile I only have 4 websites on the server which is too little to cause this issue.
Any guide for me?
Below I attached screenshots.
I had an issue like this, and it was my php FPM settings, however i do have 20 sites on my server. I am no expert but once I changed these settings, my ram usage went down, and everything was ok. In server templates, php setting i use this;
This works really well for my config and have no memory issues anymore. Obviously, your sites have to be using the fpm option. And once you make the above change to server templates, you need to go to each site and change the fpm option to cgi, then change straight back to fpm this will force the amendments you make. Hope this helps. As I say I am no expert, and this is just what worked for me.
This will be good for new sites from now on, however, to effect sites already set up on the server. You need select website;
Virtualmin >> Server Configuration >> PHP Options >> Change execution mode to anything other than FPM and then change back to FPM, this will then take on the setting you entered in the previous task.