Why isn't my PHP initialization file taking effect?
A PHP initialization file is not always immediately recognized by shared hosting accounts' servers. Here are tips for making sure it does take effect.
Things to Check
- Make sure you're using the correct filename (more info).
- Understand your PHP initialization file's refresh rate:
Filename Refresh Rate
Only updates when a new PHP process is created, e.g. when a new visitor comes to your site. However, refreshing your own site you recently visited does not generate a new PHP process.
By default, updates every 5 minutes
- Try getting the server to recognize the updated file. Which process you use depends on your hosting account's operating system (more info).
Operating System Process Linux-Based incl. cPanel End the Web or PHP process (more info) Windows-Based incl. Plesk Recycle the application pool (more info)
NOTE: Managed WordPress accounts currently cannot end their Web or PHP processes. Because of this, you cannot easily refresh your PHP settings if you use
php.ini, which drives our recommendation to use
Do your Linux hosting plans support Non-parsed Headers?
What is the PHP upload limit on Linux hosting accounts?
Too many files in one folder? Try a dirtree.
What filename does my PHP initialization file need to use?
Using Server Variable ($_SERVER) Elements with PHP 5
Enabling PHP Modules on Your Shared Hosting Account