{"id":58,"date":"2012-03-10T07:53:00","date_gmt":"2012-03-10T07:53:00","guid":{"rendered":"http:\/\/pheonixsolutions.com\/?p=58"},"modified":"2026-06-22T13:51:36","modified_gmt":"2026-06-22T08:21:36","slug":"modfcgid-maxrequestlen","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/modfcgid-maxrequestlen\/","title":{"rendered":"modfcgid: MaxRequestLen"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How to Fix mod_fcgid MaxRequestLen Error While Uploading Files<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When uploading files in applications such as WordPress, Joomla, or other PHP-based websites, you may encounter upload failures due to the mod_fcgid request size limitation. This issue occurs when the uploaded file exceeds the configured MaxRequestLen value in the Apache FCGI configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to identify and resolve the issue by increasing the MaxRequestLen value.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Root or sudo access to the server<\/li>\n\n\n\n<li>Access to the Apache configuration files<\/li>\n\n\n\n<li>Ability to restart the Apache service<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Verify the Error in Apache Logs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check the Apache error log for messages similar to the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">tail -f \/usr\/local\/apache\/logs\/error_log | grep domainname.com<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[warn] [client 203.197.151.138] mod_fcgid: HTTP request length 131274 (so far) exceeds MaxRequestLen (131072)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[error] [client 203.197.151.138] File does not exist: \/home\/domain\/public_html\/500.shtml<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This indicates that the upload request size has exceeded the configured MaxRequestLen limit.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Locate the FCGI configuration file.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Find the PHP FCGI configuration file for the affected domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A common location is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/local\/apache\/etc\/userdata\/std\/2\/domain\/domainname.com\/phpini.conf<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Edit the Configuration File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the configuration file using your preferred editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">vi \/usr\/local\/apache\/etc\/userdata\/std\/2\/domain\/domainname.com\/phpini.conf<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Increase the MaxRequestLen Value<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add or modify the following directive:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MaxRequestLen 15728640<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The configuration should look similar to:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AddHandler fcgid-script .fcgi<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">FcgidConnectTimeout 20<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MaxRequestLen 15728640<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Save the Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Save the changes and exit the editor.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Restart Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restart the Apache service for the changes to take effect.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">service httpd restart<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Verify File Uploads<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Attempt to upload the file again through the application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the upload completes successfully, the issue has been resolved.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The mod_fcgid MaxRequestLen error occurs when the HTTP request size exceeds the configured upload limit. By increasing the MaxRequestLen value in the domain&#8217;s FCGI configuration file and restarting Apache, larger file uploads can be processed successfully in applications such as WordPress and Joomla.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Fix mod_fcgid MaxRequestLen Error While Uploading Files Introduction When uploading files in applications such as WordPress, Joomla, or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-W","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":10397,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/58\/revisions\/10397"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}