{"id":1239,"date":"2021-10-20T23:11:45","date_gmt":"2021-10-21T03:11:45","guid":{"rendered":"https:\/\/www.neothek.com\/soporte\/?post_type=kb&#038;p=1239"},"modified":"2022-04-28T17:52:40","modified_gmt":"2022-04-28T21:52:40","slug":"como-puedo-hacer-recursivo-mi-archivo-php-ini","status":"publish","type":"kb","link":"https:\/\/www.neothek.com\/soporte\/articulo\/como-puedo-hacer-recursivo-mi-archivo-php-ini\/","title":{"rendered":"C\u00f3mo puedo hacer recursivo mi archivo php.ini"},"content":{"rendered":"<div class=\"col-span-12\">\n<div class=\"well\">\n<div>\n<p>Las configuraciones de PHP definidas en su archivo php.ini no son recursivas. Lo que esto significa es que no modifican la configuraci\u00f3n en ninguna carpeta hijo (que son subdirectorios del directorio actual).<\/p>\n<\/div>\n<div>\n<h2><strong>Si esta confundido ac\u00e1 hay un ejemplo<\/strong><\/h2>\n<\/div>\n<div>\n<p>Digamos que usted tiene un archivo php.ini en la carpeta public_html. Ese archivo php.ini tiene el memory_limit PHP ajustado a 256M. S\u00f3lo scripts que se ejecutan directamente en la carpeta public_html tendr\u00e1n el conjunto memory_limit a 256M. Si usted tiene una carpeta denominada public_html \/ empleados, esa carpeta \u00abempleados\u00bb no se ver\u00e1 afectado por el archivo public_html \/ php.ini, s\u00f3lo se ver\u00e1 afectada por un archivo php.ini ubicado en su propia carpeta, public_html \/ empleados.<\/p>\n<\/div>\n<div>\n<p>Si usted tiene muchas carpetas, la creaci\u00f3n de un archivo php.ini para cada carpeta ser\u00eda muy tedioso. Lo que puedes hacer es actualizar el htaccess. Para indicar al servidor que el archivo public_html \/ php.ini debe aplicarse no s\u00f3lo a public_html, sino a todas las carpetas dentro de esa carpeta (como public_html \/ empleados o public_html \/ about-us).<\/p>\n<\/div>\n<h2><strong>Actualizaci\u00f3n de valores de suPHP_ConfigPath en su archivo htaccess.<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<div>\n<p>Realizar un \u00a0archivo php.ini que afecte a todas las sub-carpetas es llamando como \u00a0archivo \u00abrecursivo\u00bb.<\/p>\n<p><strong>Paso 1.-<\/strong>\u00a0Para hacer recursivo el archivo public_html\/php.ini, editar (o crear el archivo si no existe) \u00a0public_html \/<strong>.htaccess<\/strong>\u00a0y agregue el siguiente c\u00f3digo:<\/p>\n<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">suPHP_ConfigPath \/home\/username\/public_html<\/pre>\n<p>&nbsp;<\/p>\n<p>Paso 2.- En la l\u00ednea mencionada debe especificar \u00a0el directorio donde se encuentra el archivo \u00a0php.ini que desea hacer recursivo.<\/p>\n<span class=\"mkb-shortcode-container\">\t\t<div class=\"mkb-info\">\n\t\t\t<div class=\"mkb-info__icon\">\n\t\t\t\t<i class=\"fa fa-info-circle fa-lg\"><\/i>\n\t\t\t<\/div>\n\t\t\t<div class=\"mkb-info__content\">\n\t\t\t\t Aseg\u00farese de cambiar <strong>username<\/strong> por el nombre de usuario de su cPanel.\t\t\t<\/div>\n\t\t<\/div>\n\t<\/span>\n<\/div>\n<div>Este cambio es inmediato, por lo que deber\u00eda ver la actualizaci\u00f3n inmediatamente.<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Las configuraciones de PHP definidas en su archivo php.ini no son recursivas. Lo que esto significa es que no modifican la configuraci\u00f3n en ninguna carpeta hijo (que son subdirectorios del directorio actual). Si esta confundido ac\u00e1 hay un ejemplo Digamos que usted tiene un archivo php.ini en la carpeta public_html. Ese archivo php.ini tiene el [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","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":"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":""},"kbtopic":[13],"kbtag":[76,75,74,73],"class_list":["post-1239","kb","type-kb","status-publish","hentry","kbtopic-web-hosting","kbtag-archivo-php-ini","kbtag-archivo-recursivo","kbtag-php-ini","kbtag-recursivo"],"_links":{"self":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/comments?post=1239"}],"version-history":[{"count":5,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1239\/revisions"}],"predecessor-version":[{"id":1872,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1239\/revisions\/1872"}],"wp:attachment":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/media?parent=1239"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kbtopic?post=1239"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kbtag?post=1239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}