phpnginxpleskplesk-onyx

php.ini no result (php 5.6, FPM nginx, 1and1 plesk)


No matter what I do, the changes (max execution_time and max_input_time) to php.ini do not make any difference. Edited the file in command line, then the same file in plesk editor. Reloaded and restarted nginx, finally rebooted the entire server. Still nothing.

Is this the right file to edit? phpinfo says it is at /opt/plesk/php/5.6/etc/php.ini. It there any other file needed to be edited?


Solution

  • Check max execution_time in your PHP by calling the following command in your terminal:

    php -r "echo ini_get('max_execution_time').PHP_EOL;"
    php -r "echo ini_get('max_input_time').PHP_EOL;"
    

    then get your php.ini path by calling the following command and check if you've edited the right one:

    php --ini |grep “Loaded Configuration File”
    

    as you're edited the right php.ini everything should work.