How to rebuild Apache configuration file?

chcw

Member
Jun 30, 2023
15
0
1
Hong Kong
cPanel Access Level
Root Administrator
Hi,

When I change Apache global configuration at WHM

Home /
Service Configuration /
Apache Configuration /
Global Configuration

I see there is a statement saying "Changes to these settings do not take effect until the main Apache configuration file is rebuilt."

But I cannot find an option to rebuild the Apache configuration file. How to do so?
 
Last edited by a moderator:

chcw

Member
Jun 30, 2023
15
0
1
Hong Kong
cPanel Access Level
Root Administrator
Sorry I have found the button. It appears after I click "Save" button.

However, I change the MaxRequestWorkers to 250. However, after rebuilt and restart Apache, I go to "Apache Status" and find there is totally 256 slots, like below:

__________LL_W___________________LLL______________________L__R__
___________________LLLL______________________LL______________...
................................................................
..........................................................

Why?
 

chcw

Member
Jun 30, 2023
15
0
1
Hong Kong
cPanel Access Level
Root Administrator
Also I notice a strange thing. Although I have changed Max Request Workers to 250, but in the Apache Status page, I notice that the total count of requests + idle workers are always <= 150, for example:

16 requests currently being processed, 134 idle workers

or

10 requests currently being processed, 140 idle workers

It seems there is still a 150 limit.
 

chcw

Member
Jun 30, 2023
15
0
1
Hong Kong
cPanel Access Level
Root Administrator
Hi, cPRex,

Sorry that I have found the button, it only appears after I click the "Save" button.

Now my question is after I change the MaxRequestWorkers to 250, then rebuilt and restart Apache, I go to "Apache Status" and find there is totally 256 slots, not 250 slots, like below:

__________LL_W___________________LLL______________________L__R__
___________________LLLL______________________LL______________...
................................................................
..........................................................

Why?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
I see the exact same thing on my personal machine and a test machine, so it seems like that is normal, although I'm not finding a good explanation as to why.

Just above the scoreboard you should see a line similar to this:

"1 requests currently being processed, 124 idle workers"

What does that say?