Setting max_execution_time for PHP7 and Nginx

Solution 1:

When you run php -i from command line, it will use configuration settings for your PHP CLI client, which are likely located in /etc/php/7.0/cli/php.ini.

If you want to check settings for your PHP-FPM, create a script with following contents in your web root:

<?php phpinfo(); ?>

And then go to the script URL in your browser.

Another alternative that might work is to run php -b 127.0.0.1:9000 -i, which will make the PHP CLI connect to your FastCGI server to execute the command. You might need to change the address depending on your configuration.