{"id":22237,"date":"2017-10-01T00:00:00","date_gmt":"2017-09-30T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=22237"},"modified":"2021-05-01T12:21:04","modified_gmt":"2021-05-01T06:51:04","slug":"increasing-php-memory-limit-website","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/increasing-php-memory-limit-website\/","title":{"rendered":"Aumentar el l\u00edmite de memoria PHP de su sitio web"},"content":{"rendered":"<p>\u00bfTe has encontrado alguna vez con un error que dice: Error Fatal: \u00bfTama\u00f1o de memoria agotado? \u00bfO quiz\u00e1s tu sitio web se ha quedado en blanco? Esto suele ocurrir cuando instalas un nuevo tema, plugin o actualizas tu WordPress a la \u00faltima versi\u00f3n. \u00bfO tal vez el sitio est\u00e1 funcionando demasiado lento?<\/p>\n\n\n\n<p>La causa principal de este error es que el l\u00edmite de memoria PHP de su host es menor de lo que realmente necesita el proceso. En tales casos, necesitar\u00e1 incrementar el l\u00edmite de memoria de su host, para que el proceso se complete. Puede aumentar el l\u00edmite de memoria de su host siguiendo cualquiera de los cinco 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 memoria PHP es complejo y el proceso difiere de un host a otro. As\u00ed que siempre es mejor que lo haga alguien que lo conozca bien. As\u00ed que ponte en contacto con tu empresa de alojamiento y estar\u00e1n encantados de hacerlo por ti.<\/p>\n\n\n\n<p><strong>2. Aumentar el l\u00edmite de memoria 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 memoria a trav\u00e9s de este archivo. Si no, puede pedir a su host que le permita crear un archivo PHP.ini duplicado en su directorio. Los datos o valores del archivo duplicado anular\u00e1n los del archivo PHP.ini original. Puede crear un archivo duplicado llamado PHP.ini en el directorio donde est\u00e1 instalado su sitio web WordPress. Si desea ampliar el l\u00edmite a 256MB, puede introducir la siguiente l\u00ednea de c\u00f3digo:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">limite_memoria = 256M;<\/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. Basta con a\u00f1adir la siguiente l\u00ednea en el wp-config.php<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ini_set('limite_memoria','256M');<\/pre>\n\n\n\n<p><strong>4. Cambiar el l\u00edmite de memoria en wp-config.php<\/strong><br>En caso de que usted no es capaz de editar el archivo PHP.ini, puede utilizar este m\u00e9todo que ayuda a aumentar el l\u00edmite de memoria a trav\u00e9s de la wp-config.php. Puede agregar la siguiente l\u00ednea de c\u00f3digo en su archivo wp-config.php.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">define('WP_MEMORY_LIMIT','256M');<\/pre>\n\n\n\n<p><strong>5. Modificaci\u00f3n del archivo .htaccess<\/strong><br>Algunos de ustedes pueden tener el archivo .htaccess donde simplemente puede a\u00f1adir una l\u00ednea de c\u00f3digo para aumentar el l\u00edmite de memoria.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php_value limite_memoria 256M<\/pre>\n\n\n\n<p><strong>P.D:<\/strong> 256M en los ejemplos de c\u00f3digo anteriores significa 256 MB. Si\u00e9ntase libre de cambiar esto a cualquier n\u00famero apropiado.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u00bfTe has encontrado alguna vez con un error que dice: Error Fatal: \u00bfTama\u00f1o de memoria agotado? \u00bfO quiz\u00e1s tu sitio web se ha quedado en blanco? Esto suele ocurrir cuando instalas un nuevo tema, plugin o actualizas tu WordPress a la \u00faltima versi\u00f3n. \u00bfO tal vez el sitio est\u00e1 funcionando demasiado lento? La causa principal de este error [...]<\/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-22237","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":["1"],"wpil_links_inbound_internal_count_data":["a:1:{i:0;O:15:\"Wpil_Model_Link\":6:{s:3:\"url\";s:61:\"https:\/\/wpastra.com\/docs\/increasing-php-memory-limit-website\/\";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:49:\"How to increase PHP memory limit of your website?\";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-04T03:45:57+00:00"],"_edit_lock":["1621427721:70"],"_edit_last":["39"],"onesignal_meta_box_present":["1"],"onesignal_send_notification":[""],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["60"],"_ht_kb_post_views_count":["17"],"_ht_kb_usefulness":["1"],"_ht_article_order_108":["22237"],"wp_last_modified_info":["May 1, 2021 @ 12:21 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["7225"],"helpful":["4"],"unhelpful":["6"],"redirects":["3"],"rank_math_primary_docs_category":["108"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["1349"],"rank_math_internal_links_processed":["1"],"_wpml_media_duplicate":["1"],"_trp_automatically_translated_slug_es_ES":["aumentar-limite-memoria-php-sitio-web"],"_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:4:{i:0;s:14:\"core\/paragraph\";i:1;s:17:\"core\/preformatted\";i:2;s:14:\"uagb\/container\";i:3;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1775430009\";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":"Have you ever come across an error that says: Fatal Error: Memory Size Exhausted? Or maybe your website just went white screen? This usually occurs when you install a new theme, plugin or upgrade your WordPress to the latest version. Or maybe the site is running just too slow? The main cause of this error&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/22237"}],"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=22237"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/22237\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=22237"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=22237"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=22237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}