{"id":453,"date":"2016-09-01T22:55:48","date_gmt":"2016-09-02T03:55:48","guid":{"rendered":"http:\/\/www.sistemasnonex.com\/blog\/?p=453"},"modified":"2016-09-01T22:55:48","modified_gmt":"2016-09-02T03:55:48","slug":"error-timeout-php-max-execution-time","status":"publish","type":"post","link":"https:\/\/www.sistemasnonex.com\/blog\/error-timeout-php-max-execution-time\/","title":{"rendered":"Error timeout PHP max_execution_time"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Por lo regular cuando buscamos importar en nuestro WordPress u otro sistema sobre PHP y se detiene de repente, puede deberse a que PHP alcanz\u00f3 el tiempo m\u00e1ximo de ejecuci\u00f3n sin haber terminado.<\/p>\n<p>Una idea podr\u00eda ser dividir en tareas mas peque\u00f1as una grande para que la alcance a realizar.<\/p>\n<p>La otra, sino queremos esperar o realizar varias veces el mismo proceso es aumentar el tiempo en el php.ini<\/p>\n<p>&nbsp;<\/p>\n<h3>En donde se encuentra el php.ini?<\/h3>\n<p>&nbsp;<\/p>\n<p>Si le aplican un find a php.ini aparecer\u00e1n varios resultados. Sin embargo nosotros buscamos el que gobierna nuestra versi\u00f3n de PHP. Ejemplo:<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>$sudo nano\u00a0\u00a0 \/etc\/php5\/apache2\/php.ini<\/p><\/blockquote>\n<p>Dentro de ese archivo localizar:<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>; Maximum execution time of each script, in seconds<br \/>\n; http:\/\/php.net\/max-execution-time<br \/>\n; Note: This directive is hardcoded to 0 for the CLI SAPI<br \/>\nmax_execution_time = 30<\/p><\/blockquote>\n<p>Y sustituir el valor de max_execution_time por otro deseado por ejemplo 2 minutos:<\/p>\n<blockquote><p>max_execution_time = 120<\/p><\/blockquote>\n<p>Guardar y reiniciar apache.<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>$sudo service apache2 restart<\/p><\/blockquote>\n<p>Es recomendable regresar los valores y no mover nada mas.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Por lo regular cuando buscamos importar en nuestro WordPress u otro sistema sobre PHP y se detiene de repente, puede deberse a que PHP alcanz\u00f3 el tiempo m\u00e1ximo de ejecuci\u00f3n sin haber terminado. Una idea podr\u00eda ser dividir en tareas mas peque\u00f1as una grande para que la alcance a realizar. La otra, sino queremos&#8230; <\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.sistemasnonex.com\/blog\/error-timeout-php-max-execution-time\/\">Leer m\u00e1s<\/a><\/div>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[46,47,45,48],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9njjm-7j","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/posts\/453"}],"collection":[{"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/comments?post=453"}],"version-history":[{"count":1,"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/posts\/453\/revisions"}],"predecessor-version":[{"id":454,"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/posts\/453\/revisions\/454"}],"wp:attachment":[{"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/media?parent=453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/categories?post=453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sistemasnonex.com\/blog\/wp-json\/wp\/v2\/tags?post=453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->