Author Topic: how to change max_execution_time in centos 7 main server  (Read 964 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
how to change max_execution_time in centos 7 main server
« on: September 13, 2023, 06:30:19 PM »
Hi, dear support team I changed the Max execution time from 300 to 600 but it's not working for me: please check it here the phpinfo: https://www.afghanstyle.online/navid--phpinfo.php

Note: I restart the Httpd and nginx as well.

Kindly guide me what is the problem and what is my mistake

Code: [Select]
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 60

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; How many GET/POST/COOKIE input variables may be accepted
;max_input_vars = 1000


Kind regards.


Offline
*****
Re: how to change max_execution_time in centos 7 main server
« Reply #1 on: September 14, 2023, 02:21:46 AM »
Your phpinfo link is not accessible currently, but I would hazard a guess to say perhaps you are editing the wrong php.ini -- one that doesn't apply to your active PHP. Otherwise, if it is php-fpm, you would need to restart that version of PHP after editing the php.ini for that version.