{"id":13263,"date":"2026-08-30T20:11:34","date_gmt":"2026-08-30T18:11:34","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=13263"},"modified":"2026-08-30T20:11:39","modified_gmt":"2026-08-30T18:11:39","slug":"limita-de-memorie-php-vs-timpul-de-executie-vs-limitele-procesului-care-dintre-acestea-blocheaza-site-ul-tau-web","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/","title":{"rendered":"Limita de memorie PHP vs. timpul de execu\u021bie vs. limitele proceselor: care dintre acestea blocheaz\u0103 site-ul t\u0103u web?"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">When a PHP page fails, the cause may be a PHP configuration limit or a hosting-level process restriction. <code>memory_limit<\/code> controls memory use, <code>max_execution_time<\/code> controls how long a PHP script may run, and process limits control whether a request can get or keep the server capacity it needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The visible symptom helps separate these cases. A fatal error usually points to memory exhaustion. A request that stops after running for a period points to execution time. An admin page or import that remains stuck can point to PHP worker availability or another request-level restriction.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#What_each_limit_controls\" >What each limit controls<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#How_to_identify_a_memory_limit_problem\" >How to identify a memory limit problem<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#How_to_identify_an_execution_time_problem\" >How to identify an execution time problem<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#How_max_input_vars_affects_admin_forms\" >How max_input_vars affects admin forms<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#When_the_problem_is_a_process_or_request_restriction\" >When the problem is a process or request restriction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#Check_the_active_PHP_values_before_changing_them\" >Check the active PHP values before changing them<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#Which_changes_are_safe_to_make\" >Which changes are safe to make?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/php-memory-limit-vs-execution-time-vs-process-limits-which-one-is-blocking-your-website\/#Quick_diagnosis\" >Quick diagnosis<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_each_limit_controls\"><\/span>What each limit controls<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Setting or restriction<\/th><th>What it controls<\/th><th>Typical failure pattern<\/th><\/tr><\/thead><tbody><tr><td><code>memory_limit<\/code><\/td><td>The amount of memory available to a PHP script.<\/td><td>A fatal error while PHP is processing a page, upload, image task, or other operation.<\/td><\/tr><tr><td><code>max_execution_time<\/code><\/td><td>How long a PHP script may run before the server stops it.<\/td><td>A page, import, or background task stops because the script takes too long.<\/td><\/tr><tr><td><code>max_input_vars<\/code><\/td><td>A PHP input limit associated with the variables sent with a request.<\/td><td>An admin form or configuration update does not retain all submitted fields.<\/td><\/tr><tr><td>PHP worker availability<\/td><td>Whether a PHP request can be handled by an available server process.<\/td><td>Requests remain pending or appear stuck, especially when several PHP tasks run at the same time.<\/td><\/tr><tr><td>Request limits<\/td><td>Restrictions applied to an individual web request or to the way that request is processed.<\/td><td>A request is rejected, interrupted, or cannot complete even when the PHP script itself is not using too much memory.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_identify_a_memory_limit_problem\"><\/span>How to identify a memory limit problem<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-2819922452\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\"><code>memory_limit<\/code> sets the memory ceiling for a PHP script. PHP uses memory while it loads the application, builds a page, processes an image, or handles an import. If the script reaches that ceiling, it can end with a fatal error instead of completing the request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This limit is a likely focus when the error appears during a memory-heavy task and the message refers to memory exhaustion. It is less likely to be the main cause when the request simply runs for a long time and then stops without a memory-related error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PHP parameters such as memory usage, file upload size, and script execution time can be adjusted in mybox through the <code>.htaccess<\/code> file in the website&#8217;s main directory. See <a href=\"https:\/\/mybox.com\/help\/ro\/baza-de-cunostinte\/cum-sa-modificati-parametrii-si-limitele-php\/\">how to change PHP parameters and limits<\/a> before editing the file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_identify_an_execution_time_problem\"><\/span>How to identify an execution time problem<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>max_execution_time<\/code> is the time limit for one PHP script. In mybox, it works like a stopwatch: if a script such as an image processor or data importer takes too long, the server stops it to prevent the script from continuing indefinitely. The result is commonly a timeout or an operation that stops partway through.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Focus on <code>max_execution_time<\/code> when the task progresses for a while, then ends before it finishes. Increasing memory will not solve a script that has enough memory but needs more time. The setting should be changed only when the task is expected to run longer and the current limit is the reason it stops.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Execution time is separate from upload size and memory use. A large upload can require more memory or a larger upload limit, while a slow import can require more execution time. These are different limits and should be checked separately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_max_input_vars_affects_admin_forms\"><\/span>How max_input_vars affects admin forms<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>max_input_vars<\/code> concerns the variables included in a PHP request. It becomes relevant when an admin form contains many fields or repeated settings. A form may appear to submit, while fields beyond the accepted input range are not processed or saved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This pattern is different from a memory fatal error and different from a script timeout. If only part of a large form is retained, inspect <code>max_input_vars<\/code> before changing <code>memory_limit<\/code> or <code>max_execution_time<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"When_the_problem_is_a_process_or_request_restriction\"><\/span>When the problem is a process or request restriction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">PHP configuration limits apply to the work performed by a script. PHP worker availability is different: it concerns whether a request can be served by an available PHP process. When requests stay pending or several tasks become stuck, the issue may be process availability rather than the memory or execution limit of one script.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Request limits are also separate from the script&#8217;s memory and runtime settings. A request can fail because of a request-level restriction even when the PHP code has not reached <code>memory_limit<\/code> or <code>max_execution_time<\/code>. This distinction matters for imports and admin tasks that stop before producing a PHP error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not treat a stuck request as proof that a PHP value should be increased. First separate a script failure from a process-availability problem. PHP settings can be adjusted through <code>.htaccess<\/code> as described by mybox, while process availability is a hosting-level concern rather than a PHP value shown by that file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Check_the_active_PHP_values_before_changing_them\"><\/span>Check the active PHP values before changing them<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The value in a configuration file may not be the value active for the website. A <code>phpinfo()<\/code> report shows the PHP settings currently used by the site, including memory limits, execution time, loaded modules, and other configuration values. Use <a href=\"https:\/\/mybox.com\/help\/ro\/baza-de-cunostinte\/informatii-despre-parametrii-php-actuali-phpinfo\/\">phpinfo() to check the current PHP parameters<\/a>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Check the active <code>memory_limit<\/code> when the failure is a memory-related fatal error.<\/li>\n\n\n\n<li>Check <code>max_execution_time<\/code> when a script stops after running for too long.<\/li>\n\n\n\n<li>Check <code>max_input_vars<\/code> when a large form saves only some of its fields.<\/li>\n\n\n\n<li>Consider worker availability or request restrictions when requests remain stuck or fail without a matching PHP limit error.<\/li>\n\n\n\n<li>Change only the setting that matches the observed failure, then test the same page or task again.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Which_changes_are_safe_to_make\"><\/span>Which changes are safe to make?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The safest change is a targeted change based on the failure symptom and the active value shown by <code>phpinfo()<\/code>. Avoid increasing several limits at once, because that removes the distinction between the possible causes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code>.htaccess<\/code> for PHP parameters that mybox allows you to adjust there. Memory usage, upload size, and script execution time are examples of parameters described in the mybox instructions. Make one change, repeat the failed task, and compare the result.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the request remains stuck, changing a PHP value may not address the cause. That symptom should be separated from a clear memory fatal error or an execution timeout and treated as a possible process or request restriction.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Quick_diagnosis\"><\/span>Quick diagnosis<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Fatal memory error:<\/strong> check <code>memory_limit<\/code>.<\/li>\n\n\n\n<li><strong>Script stops after taking too long:<\/strong> check <code>max_execution_time<\/code>.<\/li>\n\n\n\n<li><strong>Only part of a large form is saved:<\/strong> check <code>max_input_vars<\/code>.<\/li>\n\n\n\n<li><strong>Requests remain pending or several tasks are stuck:<\/strong> consider PHP worker availability or a request-level restriction.<\/li>\n<\/ul>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[39],"manual_kb_tag":[],"class_list":["post-13263","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-php-operations"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/13263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/13263\/revisions"}],"predecessor-version":[{"id":13264,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/13263\/revisions\/13264"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=13263"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=13263"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=13263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}