If you are on cPanel/WHM, I recommend you to not mess with the actual php.ini file, but set the values of php.ini manually in the code.
You can use the PHP function named ini_set()
to change the values for a specific application or the PHP file. For example, if I want to set the Display_errors
to On
in php.ini, I can do that by writing ini_set('display_errors','1');
and that's all!
However, if you want to change the values for all the applications working on the same server, you can edit the PHP.INI file using File Manager of cPanel for sure! You can navigate to the path given using File Manager. But I don't recommend editing php.ini.
You can add ini_set
function in your configuration file and it will work on the whole application!