Score:0

Unable to change "MaxSpareServers"?

ru flag

I wanted to increase the MaxSpareServers.

<IfModule mpm_prefork_module>
MaxSpareServers      20
</IfModule>

However, I get the below error while testing.

[root@server_1 conf.modules.d]# httpd -t
AH00526: Syntax error on line 26 of /etc/httpd/conf.modules.d/00-mpm.conf:
Invalid command 'MaxSpareServers', perhaps misspelled or defined by a module not included in the server configuration

I then verified a few points such as the MPM selection

[root@server_1 worker]# httpd -V | grep -i mpm
Server MPM:     worker
[root@server_1 worker]# httpd -M | grep -i mpm
 mpm_worker_module (shared)

Weirdly, when I checked the loaded modules, I couldn't find worker.c

[root@server_1 worker]# httpd -l
Compiled in modules:
  core.c
  mod_so.c
  http_core.c

Could this be the reason why am not able to change server configuration MaxSpareServers? If so, how do I fix this?

Please see below the version details

[root@server_1 worker]# yum info httpd
Loaded plugins: auto-update-debuginfo, changelog, fastestmirror, product-id, search-disabled-repos, subscription-manager

Loading mirror speeds from cached hostfile
Installed Packages
Name        : httpd
Arch        : x86_64
Version     : 2.4.52
Release     : 1.codeit.el7
Size        : 4.3 M
Repo        : installed
From repo   : CodeIT
Summary     : Apache HTTP Server
URL         : https://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
            : web server.
Score:0
jp flag

You are running mpm_worker_module but MaxSpareServers is defined for mpm_prefork_module.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.