by John Jackson.
I'll just chime in here, after addressing the same issue on one of my servers after upgrading to PHP 7.
Those variables can be set in several different places, depending on how the server is configured. PHP.ini is one, .htaccess is another, and I learned on my server they are set in .user.ini
So the lesson here is, check with the documentation of your hosting company, or your local sys admin to find out the right place to edit these variables.
John