We installed Moodle in a shared hosting account and it has been humming along nicely until recently. I think the hosting co. has reduced the resource limits for shared hosting because now we get errors when accessing just the main moodle page. Now we're getting errors when pages try to load their resources (.js, etc) The errors are from suphp:
Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp
because we are probably hitting a cap on RAM or the number of concurrent processes.
The ISP is telling us that we need a VPS or dedicated server which is way too expensive and is overkill for website that gets little use. As far as I know, this moodle installation is only used when my friend does a freelance training class, which is 2-3 times per year with less than 20 students. At the moment there are no students accessing the site and only one or two of us accessing the site for course maintenance. I'm sure a shared hosting account must be able to handle the load.
Is ther any way to limit the number of requests that moodle will process at one time? I guess I should set the MaxClients setting in apache.conf but I don't have access to that file its not a setting that can be put in a .htaccess file.