Steps to Perform When the phprc File Isn’t Updating
It is possible that the phprc file’s customizations are resolving online even though you have included it correctly. To ensure that your updated settings take effect, you may need to end all active PHP processes for this.
To apply any changes you make to your phprc file, follow these instructions.
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.
In case, after running the killall command you see php56.cgi: no process found, it indicates that there are no PHP processes running. Do a hard refresh in your browser for viewing your updated phpinfo.php page. Then you will see your settings have updated.
Steps to Update Your phprc File in Your Panel
Make sure your domain is Fully Hosted to use this option.
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
button.
- 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.
WordPress Sites
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.