How to change the global PHP.ini

#1
I would like to change the php.ini to increase the maximum size that a file can be sent to WordPress. I would also like to block the use of custom php.ini by my clients. How do I make these settings? Through the cPanel interface itself?
 
#3
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.
 
Top