How to make changes to the global php.ini file on my Dedicated server?

You can edit the global php.ini file of your server as long as you have root access to your server.

Firstly you need to check the path to the active php.ini file for the PHP service. To do this, simply create an info.php file with the following content in it and access it via your browser:

<? phpinfo() ?>

It will show you the current configuration of your PHP service. Find the "Loaded Configuration File" row and copy the path to the active php.ini file. Then open this file with your favorite text editor and make the changes you want to it.

You need help managing your dedicated server? We got it! SiteGround experts not only write helpful articles, but also manage the servers for our clients so they don’t have to read articles like this one. Learn more.