{"id":22743,"date":"2017-11-05T00:00:00","date_gmt":"2017-11-04T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=22743"},"modified":"2022-08-11T16:16:23","modified_gmt":"2022-08-11T10:46:23","slug":"increase-php-time-limit-wordpress-sites","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/increase-php-time-limit-wordpress-sites\/","title":{"rendered":"\u00bfC\u00f3mo aumentar el l\u00edmite de tiempo de PHP para un sitio de WordPress?"},"content":{"rendered":"<p><strong>\u00bfCu\u00e1l es el l\u00edmite de tiempo de PHP?<\/strong><\/p>\n\n\n\n<p>El L\u00edmite de Tiempo PHP es la cantidad de tiempo que su sitio pasar\u00e1 en una sola operaci\u00f3n antes de agotarse. Cuando una operaci\u00f3n alcanza el l\u00edmite de tiempo establecido, entonces devolver\u00e1 un error fatal que se parece a esto:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:default decode:true\">Error fatal: Tiempo m\u00e1ximo de ejecuci\u00f3n de xx segundos excedido...<\/pre>\n\n\n\n<p>El valor por defecto para el l\u00edmite de tiempo PHP en la mayor\u00eda de los hosts es de 30 segundos. Puede aumentar este l\u00edmite siguiendo cualquiera de los m\u00e9todos mencionados a continuaci\u00f3n.<\/p>\n\n\n\n<p><strong>1. Lo m\u00e1s recomendable: P\u00f3ngase en contacto con su anfitri\u00f3n<\/strong><br>Aumentar el L\u00edmite de Tiempo PHP es complejo y el proceso que difiere de hosts a hosts. As\u00ed que siempre es mejor que lo haga alguien que lo conozca bien. As\u00ed que p\u00f3ngase en contacto con su empresa de alojamiento y estar\u00e1n encantados de hacerlo por usted.<\/p>\n\n\n\n<p><strong>2. Aumentar el l\u00edmite de tiempo de PHP a trav\u00e9s del archivo PHP.ini<\/strong><br>Muchos peque\u00f1os servidores compartidos no permiten a los usuarios acceder al archivo PHP.ini. Si se le permite el acceso, puede aumentar directamente el l\u00edmite de tiempo de PHP a trav\u00e9s de este archivo. Si desea ampliar el l\u00edmite a 300 segundos, puede introducir la siguiente l\u00ednea de c\u00f3digo o actualizarla si ya existe:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:sh decode:true\">tiempo_de_ejecuci\u00f3n_m\u00e1x = 300;<\/pre>\n\n\n\n<p><strong>3. Alternativa a la edici\u00f3n de PHP.ini a trav\u00e9s de wp-config.php<\/strong><br>Esta es otra alternativa al m\u00e9todo PHP.ini. Simplemente a\u00f1ada \/ edite la siguiente l\u00ednea en el wp-config.php de su WordPress<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:sh decode:true\">set_time_limit(300);<\/pre>\n\n\n\n<p><strong>4. Modificaci\u00f3n del archivo .htaccess<\/strong><br>Algunos de ustedes pueden tener el archivo .htaccess donde se puede simplemente a\u00f1adir \/ editar esta l\u00ednea de c\u00f3digo para aumentar el l\u00edmite de tiempo.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:sh decode:true\">max_ejecucion 300<\/pre>\n\n\n\n<p><strong>P.D:<\/strong> 300 en los ejemplos de c\u00f3digo anteriores significa 300 segundos. Si\u00e9ntase libre de cambiar esto a cualquier n\u00famero apropiado.<\/p>\n\n\n\n<p><strong>Otros errores y correcciones relacionados:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/git-staging.wpastra.com\/es\/guides-and-tutorials\/wordpress-max-execution-time\/\">C\u00f3mo solucionar el error Tiempo m\u00e1ximo de ejecuci\u00f3n superado<\/a><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>\u00bfQu\u00e9 es el L\u00edmite de Tiempo PHP? El L\u00edmite de Tiempo PHP es la cantidad de tiempo que su sitio pasar\u00e1 en una sola operaci\u00f3n antes de agotarse. Cuando una operaci\u00f3n alcanza el l\u00edmite de tiempo establecido, entonces devolver\u00e1 un error fatal que se parece a esto: Error fatal: Tiempo m\u00e1ximo de ejecuci\u00f3n de xx segundos excedido... [...]<\/p>","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","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":"","theme-transparent-header-meta":"default","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":"","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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"docs_category":[108],"docs_tag":[],"class_list":{"0":"post-22743","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-general"},"spectra_custom_meta":{"_yoast_wpseo_primary_docs_category":["108"],"_wp_old_slug":[""],"_wp_page_template":["default"],"wpil_sync_report3":["1"],"wpil_links_inbound_internal_count":["2"],"wpil_links_inbound_internal_count_data":["a:2:{i:0;O:15:\"Wpil_Model_Link\":6:{s:3:\"url\";s:65:\"https:\/\/wpastra.com\/docs\/increase-php-time-limit-wordpress-sites\/\";s:4:\"host\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:4:\"post\";O:15:\"Wpil_Model_Post\":5:{s:2:\"id\";s:4:\"1314\";s:5:\"title\";s:35:\"Error While Importing Starter Site?\";s:4:\"type\";s:4:\"post\";s:7:\"content\";s:1648:\"<!-- wp:paragraph -->\n<p>Are you facing an error while importing Astra Starter Site? Please find solutions below for some common queries -<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong># Getting Notice \u2013 XMLReader Not Available<\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Please refer to an article <a rel=\"noopener noreferrer\" href=\"https:\/\/wpastra.com\/docs\/xmlreader-not-available-notice\/\" target=\"_blank\">here<\/a>.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><strong># Import Failed with 500 Error?<\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>This article explains how this can be fixed.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:image {\"id\":29500,\"linkDestination\":\"media\"} -->\n<figure class=\"wp-block-image\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2017\/08\/500-import-failed.jpg\"><img src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2017\/08\/500-import-failed.jpg\" alt=\"\" class=\"wp-image-29500\"\/><\/a><\/figure>\n<!-- \/wp:image -->\n\n<!-- wp:paragraph -->\n<p><strong>Steps to fix:<\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:list {\"ordered\":true} -->\n<ol><li><strong>IMPORTANT: <\/strong>Deactivate all plugins on your website. Especially those who offer \"maintenance mode\" \"security\" or \"under construction\" features.<\/li><li>Try to import the site again. Most probably, it will work.<\/li><\/ol>\n<!-- \/wp:list -->\n\n<!-- wp:paragraph -->\n<p><strong>Still no luck?&nbsp;<\/strong>Try increasing your PHP limits as recommended in&nbsp;<a href=\"https:\/\/wpastra.com\/docs\/increase-php-time-limit-wordpress-sites\/\">this article&nbsp;<\/a>and try importing the site again.<\/p>\n<!-- \/wp:paragraph -->\";s:5:\"links\";O:8:\"stdClass\":4:{s:4:\"view\";s:58:\"https:\/\/wpastra.com\/docs\/error-while-importing-astra-site\/\";s:4:\"edit\";N;s:6:\"export\";s:67:\"https:\/\/wpastra.com\/wp-admin\/post.php?area=wpil_export&post_id=1314\";s:7:\"refresh\";s:98:\"https:\/\/wpastra.com\/wp-admin\/admin.php?page=link_whisper&type=post_links_count_update&post_id=1314\";}}s:6:\"anchor\";s:18:\"this article&nbsp;\";s:15:\"added_by_plugin\";b:0;}i:1;O:15:\"Wpil_Model_Link\":6:{s:3:\"url\";s:65:\"https:\/\/wpastra.com\/docs\/increase-php-time-limit-wordpress-sites\/\";s:4:\"host\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:4:\"post\";O:15:\"Wpil_Model_Post\":5:{s:2:\"id\";s:5:\"25432\";s:5:\"title\";s:51:\"Taking too much time to import Astra Starter Sites?\";s:4:\"type\";s:4:\"post\";s:7:\"content\";s:1690:\"<!-- wp:paragraph -->\n<p>Have you been waiting for several minutes and the site is not imported yet? Getting stuck at&nbsp;Importing Pages, Posts &amp; Media?<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:image {\"id\":25434,\"linkDestination\":\"media\"} -->\n<figure class=\"wp-block-image\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2018\/03\/import-stuck.jpg\"><img src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2018\/03\/import-stuck.jpg\" alt=\"\" class=\"wp-image-25434\"\/><\/a><\/figure>\n<!-- \/wp:image -->\n\n<!-- wp:paragraph -->\n<p>This can happen in the cases as below:<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4><strong>Using Internet Explorer or Edge Browsers?<\/strong><\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>We have used some import methods which are not supported in the old&nbsp;Internet Explorer \/&nbsp;Edge versions. If you're using Internet Explorer or Edge while importing the site, please try importing again from Google Chrome (Recommended) \/ Safari or Mozilla Firefox.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4><strong>Does your website have enough resources allocated by your host?<\/strong><\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>The import process relies on PHP memory and Time resources allocated by your host. Please check the links below to learn how you can increase these:<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:list -->\n<ul><li><a href=\"https:\/\/wpastra.com\/docs\/increase-php-time-limit-wordpress-sites\/\">How to increase PHP Time Limit for WordPress sites?<\/a><\/li><li><a href=\"https:\/\/wpastra.com\/docs\/increasing-php-memory-limit-website\/\">How to increase PHP memory limit of your website?<\/a><\/li><\/ul>\n<!-- \/wp:list -->\";s:5:\"links\";O:8:\"stdClass\":4:{s:4:\"view\";s:76:\"https:\/\/wpastra.com\/docs\/taking-too-much-time-to-import-astra-starter-sites\/\";s:4:\"edit\";N;s:6:\"export\";s:68:\"https:\/\/wpastra.com\/wp-admin\/post.php?area=wpil_export&post_id=25432\";s:7:\"refresh\";s:99:\"https:\/\/wpastra.com\/wp-admin\/admin.php?page=link_whisper&type=post_links_count_update&post_id=25432\";}}s:6:\"anchor\";s:51:\"How to increase PHP Time Limit for WordPress sites?\";s:15:\"added_by_plugin\";b:0;}}"],"wpil_links_outbound_internal_count":["0"],"wpil_links_outbound_internal_count_data":["a:0:{}"],"wpil_links_outbound_external_count":["0"],"wpil_links_outbound_external_count_data":["a:0:{}"],"wpil_sync_report2_time":["2019-10-18T07:03:38+00:00"],"_edit_lock":["1660214784:87"],"_edit_last":["87"],"onesignal_meta_box_present":["1"],"onesignal_send_notification":[""],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"_ppc_meta_key":["a:8:{s:20:\"ppc_key5d92f85d42273\";s:60:\"Images &amp; Names Correctly. Title &amp; Alt Tags are Given\";s:8:\"ppc_key4\";s:15:\"Formatting Done\";s:8:\"ppc_key2\";s:23:\"Featured Image Assigned\";s:8:\"ppc_key3\";s:17:\"Category Selected\";s:8:\"ppc_key5\";s:15:\"Title is Catchy\";s:8:\"ppc_key6\";s:22:\"Social Images Assigned\";s:8:\"ppc_key7\";s:8:\"Done SEO\";s:8:\"ppc_key8\";s:28:\"Spelling and Grammar Checked\";}"],"_yoast_wpseo_title":["How to Increase PHP Time Limit for a Wordpress Site?"],"astra_style_timestamp_css":["1573723995"],"_ht_kb_post_views_count":["29"],"_ht_kb_usefulness":["-1"],"_ht_article_order_108":["22743"],"wp_last_modified_info":["August 11, 2022 @ 4:16 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["35516"],"helpful":["28"],"unhelpful":["33"],"redirects":["4"],"rank_math_primary_docs_category":["108"],"rank_math_title":["How to Increase PHP Time Limit for a Wordpress Site?"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["1327"],"_wplmi_last_modified":["2022-08-11 16:16:23"],"rank_math_seo_score":["15"],"rank_math_internal_links_processed":["1"],"pfd_related_docs":[""],"_wpml_media_duplicate":["1"],"_trp_automatically_translated_slug_es_ES":["aumentar-limite-de-tiempo-php-sitios-wordpress"],"_uag_page_assets":["a:9:{s:3:\"css\";s:2495:\".wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:5:{i:0;s:14:\"core\/paragraph\";i:1;s:17:\"core\/preformatted\";i:2;s:9:\"core\/list\";i:3;s:14:\"uagb\/container\";i:4;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776537128\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Sujay Pawar","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/sujay\/"},"uagb_comment_info":0,"uagb_excerpt":"What Is The PHP Time Limit? The PHP Time Limit is the amount of time that your site will spend on a single operation before timing out. When an operation reaches the time limit set, then it will return a fatal error that looks like this: Fatal error: Maximum execution time of xx seconds exceeded...&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/22743"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=22743"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/22743\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=22743"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=22743"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=22743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}