{"id":5295,"date":"2020-09-03T16:35:28","date_gmt":"2020-09-03T11:05:28","guid":{"rendered":"https:\/\/www.skynats.com\/?p=5295"},"modified":"2024-06-10T15:49:31","modified_gmt":"2024-06-10T10:19:31","slug":"increase-max-execution-time-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/","title":{"rendered":"Increase max_execution_time in WordPress"},"content":{"rendered":"\n<p>WordPress is mainly running based on PHP scripts. Every server sets a time limit for scripts that can run on the server. By default, the maximum execution time of PHP for WordPress is set as 30 seconds, if the limit exceeded then the WordPress shows the error as exceeded the limit. There are many methods to increase max_execution_time in WordPress. <\/p>\n\n\n\n<p>We are dealing with many WordPress errors daily and have a strong experience to fix them. All these issues are covered under all our <strong><a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">Server Management<\/a><\/strong> plans.<\/p>\n\n\n\n<p>It can be solved by three ways;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Edit php.ini file<\/li><li>Edit wp-config.php file<\/li><li>Edit .htaccess file<br><br>Let&#8217;s see how these 4 methods we can do in an apache web server.<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Edit php.ini file<\/li><\/ul>\n\n\n\n<p>We can increase the &#8220;max_execution_time&#8221; value in php.ini file and the php.ini file will be mostly located in \/etc\/php.ini<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/php.ini\n###\nmax_execution_time = 300\n###<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li> 2.Edit wp-config.php file<\/li><\/ul>\n\n\n\n<p>The wp-config.php file is the default WordPress configuration file and we can increase the &#8220;maximum execution time&#8221; in wp-config.php file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set_time_limit(300);<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Edit .htaccess file<\/li><\/ul>\n\n\n\n<p>If we use the Apache webserver then there is a .htaccess file that is used for how apache serves files from its root directory. Edit .htaccess file located in the WordPress installed root directory of apache by adding the below line at the end of the file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php_value max_execution_time 300<\/code><\/pre>\n\n\n\n<p>After all the above changes, it is recommended to restart Apacge webserver for the changes to take effective.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service apache2 restart<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-pullquote is-style-default\"><blockquote class=\"has-text-color has-vivid-red-color\"><p><strong>Prevent your website from Downtimes<\/strong><\/p><cite>Get our experts to manage your server with weekly auditing and 24\/7 monitoring<\/cite><div class=\"wp-block-button\"><a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" class=\"wp-block-button__link\" style=\"color: white;margin-top: 10px;\">GET STARTED NOW<\/a><\/div><\/blockquote><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is mainly running based on PHP scripts. Every server sets a time limit for scripts that can run on the server. By default, the maximum execution time of PHP for WordPress is set as 30 seconds, if the limit exceeded then the WordPress shows the error as exceeded the limit. There are many methods [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-5295","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Increase max_execution_time in WordPress | Skynats<\/title>\n<meta name=\"description\" content=\"Learn the different method to increase max_execution_time in Wordpress. If you need any help to fix timeout errors, contact us now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Increase max_execution_time in WordPress\" \/>\n<meta property=\"og:description\" content=\"Learn the different method to increase max_execution_time in Wordpress. If you need any help to fix timeout errors, contact us now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-03T11:05:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-10T10:19:31+00:00\" \/>\n<meta name=\"author\" content=\"Tony\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tony\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/\"},\"author\":{\"name\":\"Tony\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/1398d4641035daa52ed8b827e0aafdeb\"},\"headline\":\"Increase max_execution_time in WordPress\",\"datePublished\":\"2020-09-03T11:05:28+00:00\",\"dateModified\":\"2024-06-10T10:19:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/\"},\"wordCount\":269,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/\",\"name\":\"Increase max_execution_time in WordPress | Skynats\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2020-09-03T11:05:28+00:00\",\"dateModified\":\"2024-06-10T10:19:31+00:00\",\"description\":\"Learn the different method to increase max_execution_time in Wordpress. If you need any help to fix timeout errors, contact us now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/increase-max-execution-time-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Increase max_execution_time in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/1398d4641035daa52ed8b827e0aafdeb\",\"name\":\"Tony\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f90e801961478d690f50507d9e19eeecebabab8ab7dfdab7d2d2431114c6acd9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f90e801961478d690f50507d9e19eeecebabab8ab7dfdab7d2d2431114c6acd9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f90e801961478d690f50507d9e19eeecebabab8ab7dfdab7d2d2431114c6acd9?s=96&d=mm&r=g\",\"caption\":\"Tony\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Increase max_execution_time in WordPress | Skynats","description":"Learn the different method to increase max_execution_time in Wordpress. If you need any help to fix timeout errors, contact us now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Increase max_execution_time in WordPress","og_description":"Learn the different method to increase max_execution_time in Wordpress. If you need any help to fix timeout errors, contact us now!","og_url":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2020-09-03T11:05:28+00:00","article_modified_time":"2024-06-10T10:19:31+00:00","author":"Tony","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Tony","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/"},"author":{"name":"Tony","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/1398d4641035daa52ed8b827e0aafdeb"},"headline":"Increase max_execution_time in WordPress","datePublished":"2020-09-03T11:05:28+00:00","dateModified":"2024-06-10T10:19:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/"},"wordCount":269,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/","url":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/","name":"Increase max_execution_time in WordPress | Skynats","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2020-09-03T11:05:28+00:00","dateModified":"2024-06-10T10:19:31+00:00","description":"Learn the different method to increase max_execution_time in Wordpress. If you need any help to fix timeout errors, contact us now!","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/increase-max-execution-time-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Increase max_execution_time in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/1398d4641035daa52ed8b827e0aafdeb","name":"Tony","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f90e801961478d690f50507d9e19eeecebabab8ab7dfdab7d2d2431114c6acd9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f90e801961478d690f50507d9e19eeecebabab8ab7dfdab7d2d2431114c6acd9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f90e801961478d690f50507d9e19eeecebabab8ab7dfdab7d2d2431114c6acd9?s=96&d=mm&r=g","caption":"Tony"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/5295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=5295"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/5295\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=5295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=5295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=5295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}