{"id":8068,"date":"2026-05-10T14:53:52","date_gmt":"2026-05-10T12:53:52","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8068"},"modified":"2026-06-08T09:32:47","modified_gmt":"2026-06-08T07:32:47","slug":"how-to-fix-maximum-execution-time-exceeded-in-wordpress","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/","title":{"rendered":"How to Fix &#8220;Maximum Execution Time Exceeded&#8221; in WordPress"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">The &#8220;Maximum Execution Time Exceeded&#8221; error is a common safety mechanism in PHP. It occurs when a script on your <strong>mybox-hosted<\/strong> site takes too long to complete a task, and the server shuts it down to prevent it from consuming all available resources. This often happens during heavy operations like updating large plugins, importing demo content, or processing massive image galleries.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/#Why_This_Error_Happens\" >Why This Error Happens<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/#Step_1_Increase_the_Limit_via_mybox_Panel_Recommended\" >Step 1: Increase the Limit via mybox Panel (Recommended)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/#Step_2_Edit_the_htaccess_File\" >Step 2: Edit the .htaccess File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/#Step_3_Edit_the_wp-configphp_File\" >Step 3: Edit the wp-config.php File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/#Step_4_Identify_the_%E2%80%9CHeavy%E2%80%9D_Plugin\" >Step 4: Identify the &#8220;Heavy&#8221; Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/#Maintenance_for_mybox_Users\" >Maintenance for mybox Users<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-fix-maximum-execution-time-exceeded-in-wordpress\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_This_Error_Happens\"><\/span>Why This Error Happens<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default, servers limit how long a single script can run (often 30 or 60 seconds). If a task\u2014like a complex database query or a slow connection to an external API\u2014exceeds this limit, the server triggers a fatal error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Increase_the_Limit_via_mybox_Panel_Recommended\"><\/span>Step 1: Increase the Limit via mybox Panel (Recommended)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<\/div>\n\n<div id=\"mybox-2441039324\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">The most reliable way to fix this is at the server level within your hosting configuration.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to your <strong>mybox panel<\/strong>.<\/li>\n\n\n\n<li>Navigate to the <strong>PHP Settings<\/strong> section.<\/li>\n\n\n\n<li>Look for the variable named <code>max_execution_time<\/code>.<\/li>\n\n\n\n<li>Increase the value to <code>300<\/code> (which equals 5 minutes).<\/li>\n\n\n\n<li>Save your changes. This is the cleanest method because it updates the environment directly for your <strong>mybox-hosted<\/strong> site.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Edit_the_htaccess_File\"><\/span>Step 2: Edit the .htaccess File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer to make changes via your site&#8217;s configuration files, you can use the <code>.htaccess<\/code> file.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Access your site&#8217;s root directory via <strong>FTP<\/strong><\/li>\n\n\n\n<li>Locate and edit the <code>.htaccess<\/code> file.<\/li>\n\n\n\n<li>Add the following line at the bottom: <code>php_value max_execution_time 300<\/code><\/li>\n\n\n\n<li>Save and test your site.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Edit_the_wp-configphp_File\"><\/span>Step 3: Edit the wp-config.php File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, you can try to set the limit specifically for WordPress.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open your <strong>FTP client<\/strong> and find <code>wp-config.php<\/code>.<\/li>\n\n\n\n<li>Add the following line just before the &#8220;That&#8217;s all, stop editing!&#8221; message: <code>set_time_limit(300);<\/code><\/li>\n\n\n\n<li>Save the file.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Identify_the_%E2%80%9CHeavy%E2%80%9D_Plugin\"><\/span>Step 4: Identify the &#8220;Heavy&#8221; Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If this error happens frequently during normal site browsing (and not just during updates), it\u2019s a sign that a specific plugin is inefficient.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Check Error Logs:<\/strong> View the logs in your <strong>mybox panel<\/strong> to see which file is triggering the timeout.<\/li>\n\n\n\n<li><strong>Deactivate and Test:<\/strong> If the error occurs during a specific action (like clicking &#8220;Save&#8221;), try deactivating your most resource-intensive plugins one by one to find the culprit.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Maintenance_for_mybox_Users\"><\/span>Maintenance for mybox Users<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">While increasing the limit solves the immediate error, it is always a good idea to keep your <strong>mybox-hosted<\/strong> site optimized so scripts don&#8217;t need that much time:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Optimize Databases:<\/strong> Regularly clean up old revisions and &#8220;overhead&#8221; in your database.<\/li>\n\n\n\n<li><strong>Update PHP:<\/strong> Ensure you are running the latest stable version of PHP (e.g., 8.2 or 8.3) via your <strong>mybox panel<\/strong>, as newer versions process scripts significantly faster.<\/li>\n\n\n\n<li><strong>Check External APIs:<\/strong> If your site relies on data from other websites, a slow external server might be the hidden cause of your timeouts.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8220;Maximum Execution Time&#8221; error is simply your server&#8217;s way of saying, &#8220;This is taking too long.&#8221; By increasing the <code>max_execution_time<\/code> in your <strong>mybox panel<\/strong>, you give your WordPress site the &#8220;breathing room&#8221; it needs to complete complex tasks successfully.<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[3898,3902,5254,8573,8574,8575,8576,8577,8578,718,2147,2179,3895,3896],"class_list":["post-8068","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-increase-max-execution-time","manual_kb_tag-set-time-limit","manual_kb_tag-plugin-performance","manual_kb_tag-execution-timeout","manual_kb_tag-identify-heavy-plugin","manual_kb_tag-maximum-execution-time-exceeded","manual_kb_tag-php-max-execution-time","manual_kb_tag-execution-timeout-error","manual_kb_tag-server-timeout","manual_kb_tag-htaccess-file","manual_kb_tag-database-optimization","manual_kb_tag-wordpress-config-file","manual_kb_tag-maximum-execution-time","manual_kb_tag-max-execution-time"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8068\/revisions"}],"predecessor-version":[{"id":8069,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8068\/revisions\/8069"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=8068"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8068"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=8068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}