PHP cutting at 30s despite max_execution_time setting










0














Using phpinfo(), I have verified that PHP has the following settings:



max_execution_time = 120
max_input_time = 120


Despite these settings, my PHP script is systematically cutting out at 30 seconds (and then throws a 500 Internal Server Error). Reviewing the variables displayed when calling phpinfo(), I cannot see any variable that is set to 30s.



Is there another PHP setting that I can change to extend my PHP script execution time?










share|improve this question



















  • 1




    Maybe try restarting PHP? Also, try checking this question: stackoverflow.com/questions/1590441/…
    – Davіd
    Nov 12 '18 at 3:55







  • 1




    try to change run time by adding this line in your php script ini_set('max_execution_time', 600); // Set to 10 Min
    – Smartpal
    Nov 12 '18 at 4:01






  • 1




    is this running on a shared host? sometimes hosts have software to stop scripts running more than X seconds.
    – user10226920
    Nov 12 '18 at 4:37










  • Also check your webserver's timeout configuration. It may be hardcoded to 30 seconds. See unix.stackexchange.com/a/294214
    – Rei
    Nov 12 '18 at 4:44















0














Using phpinfo(), I have verified that PHP has the following settings:



max_execution_time = 120
max_input_time = 120


Despite these settings, my PHP script is systematically cutting out at 30 seconds (and then throws a 500 Internal Server Error). Reviewing the variables displayed when calling phpinfo(), I cannot see any variable that is set to 30s.



Is there another PHP setting that I can change to extend my PHP script execution time?










share|improve this question



















  • 1




    Maybe try restarting PHP? Also, try checking this question: stackoverflow.com/questions/1590441/…
    – Davіd
    Nov 12 '18 at 3:55







  • 1




    try to change run time by adding this line in your php script ini_set('max_execution_time', 600); // Set to 10 Min
    – Smartpal
    Nov 12 '18 at 4:01






  • 1




    is this running on a shared host? sometimes hosts have software to stop scripts running more than X seconds.
    – user10226920
    Nov 12 '18 at 4:37










  • Also check your webserver's timeout configuration. It may be hardcoded to 30 seconds. See unix.stackexchange.com/a/294214
    – Rei
    Nov 12 '18 at 4:44













0












0








0







Using phpinfo(), I have verified that PHP has the following settings:



max_execution_time = 120
max_input_time = 120


Despite these settings, my PHP script is systematically cutting out at 30 seconds (and then throws a 500 Internal Server Error). Reviewing the variables displayed when calling phpinfo(), I cannot see any variable that is set to 30s.



Is there another PHP setting that I can change to extend my PHP script execution time?










share|improve this question















Using phpinfo(), I have verified that PHP has the following settings:



max_execution_time = 120
max_input_time = 120


Despite these settings, my PHP script is systematically cutting out at 30 seconds (and then throws a 500 Internal Server Error). Reviewing the variables displayed when calling phpinfo(), I cannot see any variable that is set to 30s.



Is there another PHP setting that I can change to extend my PHP script execution time?







php






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 '18 at 7:26









Milad Bahmanabadi

701617




701617










asked Nov 12 '18 at 3:52









Mark McKitterickMark McKitterick

11




11







  • 1




    Maybe try restarting PHP? Also, try checking this question: stackoverflow.com/questions/1590441/…
    – Davіd
    Nov 12 '18 at 3:55







  • 1




    try to change run time by adding this line in your php script ini_set('max_execution_time', 600); // Set to 10 Min
    – Smartpal
    Nov 12 '18 at 4:01






  • 1




    is this running on a shared host? sometimes hosts have software to stop scripts running more than X seconds.
    – user10226920
    Nov 12 '18 at 4:37










  • Also check your webserver's timeout configuration. It may be hardcoded to 30 seconds. See unix.stackexchange.com/a/294214
    – Rei
    Nov 12 '18 at 4:44












  • 1




    Maybe try restarting PHP? Also, try checking this question: stackoverflow.com/questions/1590441/…
    – Davіd
    Nov 12 '18 at 3:55







  • 1




    try to change run time by adding this line in your php script ini_set('max_execution_time', 600); // Set to 10 Min
    – Smartpal
    Nov 12 '18 at 4:01






  • 1




    is this running on a shared host? sometimes hosts have software to stop scripts running more than X seconds.
    – user10226920
    Nov 12 '18 at 4:37










  • Also check your webserver's timeout configuration. It may be hardcoded to 30 seconds. See unix.stackexchange.com/a/294214
    – Rei
    Nov 12 '18 at 4:44







1




1




Maybe try restarting PHP? Also, try checking this question: stackoverflow.com/questions/1590441/…
– Davіd
Nov 12 '18 at 3:55





Maybe try restarting PHP? Also, try checking this question: stackoverflow.com/questions/1590441/…
– Davіd
Nov 12 '18 at 3:55





1




1




try to change run time by adding this line in your php script ini_set('max_execution_time', 600); // Set to 10 Min
– Smartpal
Nov 12 '18 at 4:01




try to change run time by adding this line in your php script ini_set('max_execution_time', 600); // Set to 10 Min
– Smartpal
Nov 12 '18 at 4:01




1




1




is this running on a shared host? sometimes hosts have software to stop scripts running more than X seconds.
– user10226920
Nov 12 '18 at 4:37




is this running on a shared host? sometimes hosts have software to stop scripts running more than X seconds.
– user10226920
Nov 12 '18 at 4:37












Also check your webserver's timeout configuration. It may be hardcoded to 30 seconds. See unix.stackexchange.com/a/294214
– Rei
Nov 12 '18 at 4:44




Also check your webserver's timeout configuration. It may be hardcoded to 30 seconds. See unix.stackexchange.com/a/294214
– Rei
Nov 12 '18 at 4:44












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255742%2fphp-cutting-at-30s-despite-max-execution-time-setting%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255742%2fphp-cutting-at-30s-despite-max-execution-time-setting%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo