If you need different PHP values, edit them in php.ini.
PHP.ini is usually located at:
To find the exact location, you can use the phpinfo() function in PHP and look under "Loaded Configuration File".
After you have saved your changes to the file, you must restart the apache server or php fpm (depending on your configuration).