Getting Error When Trying To Upgrade

We DO NOT recommend to start the upgrade on your server. Your server has wrong PHP script timeout settings. This could be due to restrictions on the PHP set_time_limit function or FastCGI "Timeout" options. We recommend you to contact your hosting provider in order to resolve this issue or contact our tech support team to perform the upgrade for you.

I went into my /etc.php.ini and added this:

max_execution_time = 300

Went into php-fpm.conf.d added this:

;request_terminate_timeout = 300

Am I missing something here?

I had to upgrade it from the command line; I wonder why?

php admin.php --dispatch=upgrade_center.console upgrade core --no-backup --skip-validator=collisions