Knowledge Base
MilesWeb / Web Hosting FAQ

Steps to Perform When the phprc File Isn’t Updating

Approx. read time : 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:

For PHP 7.0:

For PHP 7.1:

For PHP 7.2:

For PHP 7.3:

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

  • 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:

Ensure any such settings match with the one you have added to your phprc file.

Pallavi Godse
Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.