My phprc file isn't updating

It’s possible that even if you’ve correctly added the phprc file, you may not notice its customizations resolving online. You may need to kill off all running PHP processes to ensure your new settings take effect.

The following describes the steps to push through any changes you make to your phprc file.

These directions apply to non-DreamPress sites. If you're attempting to update your PHP settings with a DreamPress site, view the following article:

Updating your phprc file via SSH

    1. Log into your server via SSH.
    2. Once you log in, run the following command based on your version of PHP to kill off all running PHP processes:

In the following 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

Killing off your PHP processes in this way updates your phprc file.

If after running the killall command you see php56.cgi: no process found, this means there are no PHP processes running. Perform a hard refresh in your browser to view your updated phpinfo.php page. You should now see your settings have updated.

Updating your phprc file in your panel

You can also update your phprc file by saving your domain configuration in your panel.

  1. Navigate to the (Panel > 'Domains' > 'Manage Domains') page.
  2. Click the Edit button to the right of your domain under the 'Web Hosting' column.
    • The 'Manage Domains' settings page opens:
  3. In the first section, click the blue Change settings button.
    • This will update your phprc file within 10 minutes.

Updating your phprc file on an Nginx server

If your server is running Nginx, you can update your PHP processes by saving your configuration in the panel as mentioned above.

If you're on a Dedicated server with an admin user, you can also reload and restart Nginx. View the following article for further instructions:

See also

Did this article answer your questions?

Article last updated PST.