Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Web Hosting FAQ  >  Steps to Perform When the phprc File Isn’t Updating
Top Scroll

Steps to Perform When the phprc File Isn’t Updating

 3 min

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

  1. Log into your server using SSH.
  2. 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.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.