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
- Log into your server via SSH.
- 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 7.4:
[server]$ killall -9 php74.cgi -u shelluser
For PHP 8.0:
[server]$ killall -9 php80.cgi -u shelluser
For PHP 8.1:
[server]$ killall -9 php81.cgi -u shelluser
Killing off your PHP processes in this way updates your phprc file.
Updating your phprc file in your panel
Your domain must be Fully Hosted to use this option.
You can also update your phprc file by saving your domain configuration in your panel.
- Navigate to the Hosted Domains page.
- Click the Edit button to the right of your domain under the Web Hosting column.
- The Hosted Domains settings page opens:
- In the first section, click the 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 have adjusted a PHP setting and your WordPress site is not showing the new value, check your wp-config.php file. You may see a line such as the following:
define( 'WP_MEMORY_LIMIT', '128M' );
Make sure any such settings match what you've added to your phprc file.