{"id":3519,"date":"2010-02-27T18:38:09","date_gmt":"2010-02-27T23:38:09","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3519"},"modified":"2026-10-23T09:54:52","modified_gmt":"2026-10-23T13:54:52","slug":"warning-maxclients-exceeds-serverlimit","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/warning-maxclients-exceeds-serverlimit\/","title":{"rendered":"Apache &#8220;MaxClients exceeds ServerLimit&#8221;: Fix MaxRequestWorkers and ServerLimit on cPanel"},"content":{"rendered":"<div class=\"uh-blog-hero\" style=\"margin:0 0 40px;text-align:center;padding:48px 24px;border-radius:20px;background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;box-shadow:0 20px 40px -15px rgba(13,31,60,0.28);position:relative;overflow:hidden;\">\n<div style=\"display:inline-flex;align-items:center;gap:8px;padding:7px 14px;margin-bottom:16px;border:1px solid rgba(0,212,255,0.32);border-radius:999px;color:#DFF8FF;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,212,255,0.10);\"><i class=\"fas fa-server\" style=\"color:#00D4FF;\"><\/i> Hosting Guide<\/div>\n<h1 style=\"color:#ffffff;font-size:clamp(32px,5vw,46px);line-height:1.12;margin:0 0 14px;font-weight:800;\">Apache &#8220;MaxClients exceeds ServerLimit&#8221;: Fix MaxRequestWorkers and ServerLimit on cPanel<\/h1>\n<\/div>\n<div class=\"uh-blog-excerpt\" style=\"border-left:4px solid #00D4FF;padding:18px 20px;margin:0 0 34px;background:#F8FAFC;color:#1F2937;border-radius:0 14px 14px 0;box-shadow:0 8px 28px rgba(13,31,60,0.08);line-height:1.75;\"><strong style=\"color:#0D1F3C;\">Short answer:<\/strong> The warning means Apache&#8217;s worker limit (<code>MaxRequestWorkers<\/code>, called <code>MaxClients<\/code> before Apache 2.4) is set higher than <code>ServerLimit<\/code> allows, so Apache lowers it at start-up. On cPanel, change both values in <strong>WHM &gt; Service Configuration &gt; Apache Configuration &gt; Global Configuration<\/strong>, not in <code>httpd.conf<\/code>. With the event or worker MPM, <code>ServerLimit \u00d7 ThreadsPerChild<\/code> must be at least <code>MaxRequestWorkers<\/code>; with prefork, <code>ServerLimit<\/code> must be at least <code>MaxRequestWorkers<\/code>.<\/div>\n<nav aria-label=\"Table of contents\" class=\"uh-toc\" style=\"background:#ffffff;border:1px solid #E5E7EB;border-radius:16px;padding:20px 22px;margin:0 0 34px;box-shadow:0 4px 12px rgba(13,31,60,0.08);\">\n<div style=\"font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#176EA5;margin-bottom:10px;\"><i class=\"fas fa-list\" style=\"color:#00D4FF;\"><\/i> In this guide<\/div>\n<ol style=\"margin:0;padding-left:20px;columns:2 260px;column-gap:28px;line-height:1.9;\">\n<li><a href=\"#what-the-warning-looks-like\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">What the warning looks like<\/a><\/li>\n<li><a href=\"#the-settings-in-plain-words\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">The settings in plain words<\/a><\/li>\n<li><a href=\"#step-1-check-the-apache-version-and-mpm\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 1: check the Apache version and MPM<\/a><\/li>\n<li><a href=\"#step-2-work-out-matching-values\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 2: work out matching values<\/a><\/li>\n<li><a href=\"#step-3-change-the-values-in-whm\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 3: change the values in WHM<\/a><\/li>\n<li><a href=\"#step-4-confirm-the-change\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 4: confirm the change<\/a><\/li>\n<li><a href=\"#is-the-limit-really-the-problem\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Is the limit really the problem?<\/a><\/li>\n<li><a href=\"#troubleshooting\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Troubleshooting<\/a><\/li>\n<\/ol>\n<\/nav>\n<div class=\"uh-post-content\" style=\"color:#1F2937;font-size:16px;line-height:1.75;\">\n<h2 id=\"what-the-warning-looks-like\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> What the warning looks like<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>WARNING: MaxRequestWorkers of 500 would require 20 servers and\nwould exceed ServerLimit of 16, decreasing to 400.<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Older Apache versions word it as <em>MaxClients of 500 exceeds ServerLimit value of 256 servers, lowering MaxClients to 256<\/em>. Either way, Apache starts, but with fewer workers than you asked for.<\/p>\n<h2 id=\"the-settings-in-plain-words\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> The settings in plain words<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Directive<\/th>\n<th style=\"padding:14px;text-align:left;\">Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">MaxRequestWorkers (MaxClients)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The most requests Apache serves at the same time. Extra requests wait in a queue.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">ServerLimit<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The most Apache child processes that can exist. A hard cap set at start-up.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">ThreadsPerChild<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Threads in each child process (event and worker MPMs only).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">StartServers, MinSpareThreads, MaxSpareThreads<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">How many processes or threads Apache keeps ready.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"step-1-check-the-apache-version-and-mpm\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 1: check the Apache version and MPM<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>httpd -v                    # Apache version\nhttpd -V | grep -i mpm      # event, worker or prefork<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Current cPanel servers run Apache 2.4, usually with the <strong>event<\/strong> MPM and PHP-FPM. Some older setups use <strong>prefork<\/strong> with mod_php or another handler. The maths is different for each.<\/p>\n<h2 id=\"step-2-work-out-matching-values\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 2: work out matching values<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">MPM<\/th>\n<th style=\"padding:14px;text-align:left;\">Rule<\/th>\n<th style=\"padding:14px;text-align:left;\">Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">event or worker<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">ServerLimit \u00d7 ThreadsPerChild \u2265 MaxRequestWorkers<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">ThreadsPerChild 25, MaxRequestWorkers 400, ServerLimit 16<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">prefork<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">ServerLimit \u2265 MaxRequestWorkers<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">MaxRequestWorkers 150, ServerLimit 150<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">Do not raise the limits further than the server&#8217;s memory allows. With prefork, each worker is a full process. Measure the average size of an Apache process, then divide the memory you can give Apache by that size:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>ps -ylC httpd --sort:rss | awk 'NR&gt;1 {sum+=$8; n++} END {print \"avg MB:\", sum\/n\/1024, \"processes:\", n}'<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">With event and PHP-FPM, Apache threads are small, and memory is mostly used by PHP-FPM, which has its own limits per domain in MultiPHP Manager.<\/p>\n<h2 id=\"step-3-change-the-values-in-whm\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 3: change the values in WHM<\/h2>\n<ol style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Log in to WHM and open <strong>Service Configuration &gt; Apache Configuration<\/strong>.<\/li>\n<li style=\"margin:0 0 8px;\">Open <strong>Global Configuration<\/strong>.<\/li>\n<li style=\"margin:0 0 8px;\">Set <strong>Server Limit<\/strong> and <strong>Max Request Workers<\/strong> using the rule for your MPM.<\/li>\n<li style=\"margin:0 0 8px;\">Save, then click <strong>Rebuild Configuration and Restart Apache<\/strong>.<\/li>\n<\/ol>\n<p style=\"margin:0 0 18px;\">WHM stores these values and writes them into <code>httpd.conf<\/code> each time it rebuilds the configuration. Values typed directly into <code>httpd.conf<\/code> are lost at the next rebuild. If you need a directive WHM does not offer, use the <strong>Include Editor<\/strong> on the same page.<\/p>\n<h2 id=\"step-4-confirm-the-change\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 4: confirm the change<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>\/scripts\/restartsrv_httpd\ngrep -iE \"MaxRequestWorkers|ServerLimit\" \/etc\/apache2\/conf\/httpd.conf\ntail -n 20 \/etc\/apache2\/logs\/error_log<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">The warning should no longer appear after the restart.<\/p>\n<h2 id=\"is-the-limit-really-the-problem\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Is the limit really the problem?<\/h2>\n<p style=\"margin:0 0 18px;\">Before you raise limits, check whether Apache actually runs out of workers:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>grep -i \"MaxRequestWorkers\" \/etc\/apache2\/logs\/error_log | tail\n# \"server reached MaxRequestWorkers setting\" means the limit was hit<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">If the limit is hit often, raising it helps only if the server has spare CPU and memory. Very often the real cause is slow PHP pages, a bot flood or a slow database, and more workers just make the server swap. Look at the busiest processes with <a href=\"https:\/\/underhost.com\/blog\/install-htop-2-0-better-linux-process-monitoring-for-rhel-centos-fedora\/\">htop<\/a>, and add caching or a CDN before adding workers. See our <a href=\"https:\/\/underhost.com\/blog\/optimizing-database-performance-in-cpanel-for-faster-sites\/\">database performance guide<\/a> as well.<\/p>\n<h2 id=\"troubleshooting\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Troubleshooting<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Problem<\/th>\n<th style=\"padding:14px;text-align:left;\">Likely cause<\/th>\n<th style=\"padding:14px;text-align:left;\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The warning returns after a cPanel update<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Values were edited in httpd.conf<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Set them in WHM Global Configuration instead.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Apache will not start<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">ServerLimit is far too high for the memory, or a typo in an include<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Lower the values and check the error log.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The server swaps heavily after the change<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Too many workers for the memory<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Lower MaxRequestWorkers and tune PHP-FPM limits.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div aria-hidden=\"true\" class=\"uh-section-divider\" style=\"width:min(100% - 32px, 1080px);margin:44px auto;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:18px;pointer-events:none;\"><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,255,0.40),rgba(23,110,165,0.24),transparent);\"><\/span><img alt=\"\" decoding=\"async\" height=\"32\" loading=\"lazy\" src=\"https:\/\/cdn.underhost.com\/android-chrome-192x192.webp\" style=\"width:32px;height:32px;display:block;border-radius:8px;filter:drop-shadow(0 0 14px rgba(0,212,255,0.30));\" width=\"32\"\/><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(23,110,165,0.24),rgba(0,212,255,0.40),transparent);\"><\/span><\/div>\n<\/div>\n<div class=\"uh-blog-cta\" style=\"background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;padding:36px 24px;border-radius:20px;text-align:center;margin:44px 0;box-shadow:0 20px 40px -15px rgba(13,31,60,0.32);\">\n<h2 style=\"margin:0 0 12px;font-size:28px;line-height:1.25;color:#ffffff;\">Need help with this?<\/h2>\n<p style=\"font-size:17px;margin:0 auto 22px;color:#EAF6FF;max-width:720px;line-height:1.7;\">Apache struggling under load? Our team can tune Apache, PHP-FPM and caching for your traffic.<\/p>\n<p><a href=\"https:\/\/underhost.com\/server-management.php\" style=\"background:linear-gradient(90deg,#00D4FF,#0077FF);color:#ffffff;padding:13px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;\">See server management plans<\/a><a href=\"https:\/\/customerpanel.ca\/client\/\" style=\"background:transparent;color:#ffffff;padding:12px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;border:1px solid rgba(255,255,255,0.32);\">Contact @CustomerPanel<\/a><\/div>\n<div class=\"uh-faq-section\" id=\"faq\" style=\"margin:34px 0;scroll-margin-top:90px;\">\n<h2 style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:0 0 18px;border-bottom:2px solid rgba(0,212,255,0.22);padding-bottom:10px;\">Frequently asked questions<\/h2>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">What replaced MaxClients in Apache 2.4?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">MaxRequestWorkers. MaxClients is still accepted as an old name.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Where do I change MaxRequestWorkers on cPanel?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">In WHM &gt; Service Configuration &gt; Apache Configuration &gt; Global Configuration. Then rebuild and restart Apache.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">How do I know which MPM I use?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Run httpd -V | grep -i mpm. Most current cPanel servers use event.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Should I set MaxRequestWorkers as high as possible?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. Set it to what the server&#8217;s memory and CPU can handle. Too many workers make the server slower.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Does MaxRequestWorkers limit PHP-FPM too?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. PHP-FPM has its own process limits for each domain, set in MultiPHP Manager. Tune both together, so Apache does not accept more requests than PHP can handle.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Why does Apache lower my value?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">ServerLimit, or ServerLimit times ThreadsPerChild, is too small for the MaxRequestWorkers value you set.<\/p>\n<\/div>\n<\/div>\n<p><!-- uh-related-start --><\/p>\n<div style=\"background:#F4F8FC;border:1px solid #DCE7F3;border-radius:14px;padding:18px 22px;margin:32px 0 8px;\">\n<h2 style=\"margin:0 0 12px;font-size:22px;\">Related guides<\/h2>\n<ul style=\"margin:0;padding-left:20px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/nodejs-security-update-october-2026-cve-2026-111497\/\">Node.js Security Update (October 2026): CVE-2026-111497<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/php-security-release-october-2026-patch-guide\/\">PHP Critical Security Update (October 2026): Patch Guide, CloudLinux Status, CERT-EU Advice and Mitigations<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/install-emdash-cms-on-cpanel-and-shared-hosting-2026\/\">Install EmDash CMS on cPanel and Shared Hosting (2026)<\/a><\/li>\n<\/ul>\n<\/div>\n<p><!-- uh-related-end --><br \/>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"What replaced MaxClients in Apache 2.4?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"MaxRequestWorkers. MaxClients is still accepted as an old name.\"}}, {\"@type\": \"Question\", \"name\": \"Where do I change MaxRequestWorkers on cPanel?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"In WHM > Service Configuration > Apache Configuration > Global Configuration. Then rebuild and restart Apache.\"}}, {\"@type\": \"Question\", \"name\": \"How do I know which MPM I use?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Run httpd -V | grep -i mpm. Most current cPanel servers use event.\"}}, {\"@type\": \"Question\", \"name\": \"Should I set MaxRequestWorkers as high as possible?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. Set it to what the server's memory and CPU can handle. Too many workers make the server slower.\"}}, {\"@type\": \"Question\", \"name\": \"Does MaxRequestWorkers limit PHP-FPM too?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. PHP-FPM has its own process limits for each domain, set in MultiPHP Manager. Tune both together, so Apache does not accept more requests than PHP can handle.\"}}, {\"@type\": \"Question\", \"name\": \"Why does Apache lower my value?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"ServerLimit, or ServerLimit times ThreadsPerChild, is too small for the MaxRequestWorkers value you set.\"}}]}<\/script><\/p>\n<h2 id=\"sources\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-book\" style=\"color:#00D4FF;\"><\/i> Sources<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mpm_common.html\">Apache documentation: MPM common directives<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/whm\/service-configuration\/apache-configuration\/global-configuration\/\">cPanel documentation: Global Configuration<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The warning means Apache&#8217;s worker limit (MaxRequestWorkers, called MaxClients before Apache 2.4) is set higher than ServerLimit allows, so Apache lowers it at start-up. On cPanel, change both values in WHM > Service Configuration > Apache Configuration > Global Configuration, not in httpd.conf. With the event or worker MPM, ServerLimit \u00d7 ThreadsPerChild must be at least MaxRequestWorkers; with prefork, ServerLimit must be at least MaxRequestWorkers.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81],"tags":[108,185,109],"class_list":["post-3519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting-guides","tag-tag-cpanel","tag-php","tag-tag-whm"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3519"}],"version-history":[{"count":12,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3519\/revisions"}],"predecessor-version":[{"id":7018,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3519\/revisions\/7018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}