Where to set MaxRequestWorkers value properly?

SYSTEM INFORMATION
OS type and version almalinux 8.10
Virtualmin version 7.20.2

To avoid this error which I’m constantly getting and causes all virtual servers to go down:

AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

I’ve added this into the /etc/httpd/conf.modules.d/00-mpm.conf file right after the LoadModule mpm_event_module modules/mod_mpm_event.so line, using the Edit Config Files section and restarted both apache and the VPS:

<IfModule mpm_event_module>
    ServerLimit         512
    StartServers        4
    MinSpareThreads     75
    MaxSpareThreads     250
    ThreadLimit         64
    ThreadsPerChild     32
    MaxRequestWorkers   512
    MaxConnectionsPerChild   10000
</IfModule>

However, apachectl status shows this:

httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
           /etc/systemd/system/httpd.service.d
           └─php74-php-fpm.conf
   Active: active (running) since Fri 2024-12-27 12:59:12 UTC; 8min ago
     Docs: man:httpd.service(8)
 Main PID: 4155 (httpd)
   Status: "Total requests: 2681; Idle/Busy workers 96/3;Requests/sec: 5.27; Bytes served/sec:  45KB/sec"
    Tasks: 351 (limit: 50377)
   Memory: 129.7M
   CGroup: /system.slice/httpd.service
           ├─4155 /usr/sbin/httpd -DFOREGROUND
           ├─4157 /usr/sbin/httpd -DFOREGROUND
           ├─4158 /usr/sbin/httpd -DFOREGROUND
           ├─4159 /usr/sbin/httpd -DFOREGROUND
           ├─4160 /usr/sbin/httpd -DFOREGROUND
           ├─4161 /usr/sbin/httpd -DFOREGROUND
           └─4162 /usr/sbin/httpd -DFOREGROUND

I understand Idle/Busy workers 96/3 means my MaxRequestWorkers 512 was never applied. Exactly which file should I edit to set MaxRequestWorkers and the other settings as shown? Thanks

Hello,

See this thread: