In order to make changes to the global php.ini file on
dedicated server, you should first check the active php.ini file for php service. This can be easily achieved by creating an info.php file by typing the following content and accessing it through your browser.
<?phpinfo()?>
Now you will know the existing configuration of your PHP service. Next step is to find ‘Loaded Configuration File’ row. Now copy the path to active php.ini file. Using your preferred text editor, open this file and now you can make changes as desired.