Though you have added the phprc file correctly, it might happen that its customizations are resolving online. For this, you might require to kill off all the PHP processes that are running to make sure your new settings take effect.
Check the following steps to push through any changes you make to your phprc file.
Steps to Update Your phprc File via SSH
- Log into your server using SSH.
- Then, execute the below command based on your version of PHP to kill off all running PHP processes:
In the below examples, replace shelluser with your actual SSH username in all lowercase.
For PHP 5.6:
[server]$ killall -9 php56.cgi -u shelluser
For PHP 7.0:
[server]$ killall -9 php70.cgi -u shelluser
For PHP 7.1:
[server]$ killall -9 php71.cgi -u shelluser
For PHP 7.2:
[server]$ killall -9 php72.cgi -u shelluser
For PHP 7.3:
[server]$ killall -9 php73.cgi -u shelluser
When you kill off your PHP processes in this way, it updates your phprc file.
Steps to Update Your phprc File in Your Panel
Your phprc file can also be updated by saving your domain configuration in your panel.
1. Go to theManage Domains page.
2. To the right of your domain under the ‘Web Hosting’ column, click on the Edit
- The ‘Manage Domains’ settings page will open:
3. Click the Changesettings button in the first section.
- With this your phprc file will get updated within 10 minutes.
Steps to Update Your phprc file on An Nginx Server
In case Nginx is running on your server, your PHP processes can be updated by saving your configuration in the panel as mentioned above.
In case you are on a dedicated server with an admin user, Nginx can be reloaded and restarted.
In case a PHP setting is adjusted and your WordPress site is not displaying the new value, check your wp-config.php file. You may see a line as below:
define( 'WP_MEMORY_LIMIT', '128M' );
Ensure any such settings match with the one you have added to your phprc file.