Skip to main content

httpd.conf priority

Comments

5 comments

  • cPanelMichael
    Hello :) You should actually not make direct edits to the /usr/local/apache/conf/httpd.conf file for those types of changes. The following documents should be helpful: How httpd.conf Is Processed Custom Directives Outside of a VirtualHost Tag Changes Contained Within a VirtualHost Directive Thank you.
    0
  • carlosbss
    Hi Michael Strange because i have in my pre_main_global: ServerLimit 26 StartServers 10 MaxClients 780 MinSpareThreads 15 MaxSpareThreads 35 ThreadsPerChild 30 MaxRequestsPerChild 1000 But when i restart apache i get: # /etc/init.d/httpd restart WARNING: MaxClients (1024) is not an integer multiple of ThreadsPerChild (30), lowering MaxClients to 1020 for a maximum of 34 child processes, WARNING: MaxClients (500) is not an integer multiple of ThreadsPerChild (30), lowering MaxClients to 480 for a maximum of 16 child processes, the 1024 value comes from WHM -> Apache Config -> Global the 500 value i have no clue where it comes from. Should't the include override those values? Cheers
    0
  • cPanelMichael
    Hello :) Please open a support ticket so we can take a closer look and review the settings configured on your system. You can post the ticket number here so we can update this thread with the outcome. Thanks.
    0
  • carlosbss
    Ticket 5111579
    0
  • cPanelMichael
    To update, the user was advised to disable some additional custom entries added to /usr/local/apache/conf/includes/post_virtualhost_global.conf to see if that makes a difference. Thank you.
    0

Please sign in to leave a comment.