Reputation: 172
Using Debian 8 and PHP 7.2, I added this line in /etc/php/7.2/cli/php.ini :
max_input_time = 600
But the php client don't get it:
~# php -i | grep max_input_time
max_input_time => -1 => -1
php.ini used by php client is ok:
~# php -i | grep php.ini
Configuration File (php.ini) Path => /etc/php/7.2/cli
Loaded Configuration File => /etc/php/7.2/cli/php.ini
I test the line in many php.ini sections but result is always the same.
How to change the php client parameters ?
Upvotes: 0
Views: 103
Reputation: 172
Some parameters are hardcoded for the php client.
It's written inside the php.ini for each concerned parameter, example:
; Note: This directive is hardcoded to 0 for the CLI SAPI
Parameters which are not hardcoded for php client can be modified, and it's immediatly reflected by "php -i" command.
Upvotes: 1
Reputation: 4811
According to documentation
max_input_time This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET.
Does it applicable to CLI? Have you tried to change another configuration, for example max_execution_time?
Upvotes: 1
Reputation:
You should restart the service,
try : sudo systemctl restart php-fpm.service
Upvotes: 0