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.
Update 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:
For PHP 5.6:
[server]$ killall -9 php56.cgi
For PHP 7:
[server]$ killall -9 php70.cgi
Killing off your PHP processes in this way updates your phprc file.
Update your phprc file in your panel
You can also update your phprc file by saving your domain configuration in your panel.
- Navigate to the (Panel > 'Domains' > 'Manage Domains') page.
- Click the Edit button to the right of your domain under the 'Web Hosting' column.
- The 'Manage Domains' settings page opens:
- In the first section, click the blue Change settings button.
- This will update your phprc file within 10 minutes.
Updating the 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.