Skip to main content

How to rebuild Apache configuration file?

Comments

9 comments

  • cPRex Jurassic Moderator
    Hey there! Underneath that line of text, there should be a button that says "Rebuild and restart Apache" Do you not see that option on your end?
    0
  • chcw
    Hi, Thank you. But in my WHM, there is no such a button, see below: -07-03_5-45-21.jpg">83329 The cPanel version shows 110.0.7.
    0
  • chcw
    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?
    0
  • chcw
    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.
    0
  • cPRex Jurassic Moderator
    It's odd that the button wouldn't exist. Can you try running these command to see if they work properly? cp /etc/apache2/conf/httpd.conf{,.bak-`date +%Y%m%d`} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
    0
  • chcw
    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?
    0
  • cPRex Jurassic Moderator
    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?
    0
  • chcw
    Thank you. The total count 1 + 124 = 125 is a multiple of 25
    0
  • cPRex Jurassic Moderator
    You are always welcome to submit a ticket so we can check things directly on your system and try to get more details.
    0

Please sign in to leave a comment.