Why isn't my php.ini file taking effect?
A PHP initialization file is not always immediately recognized by the server. Here are tips for Linux and Windows Shared Hosting to get your PHP initialization file to take effect immediately.
NOTE: To check whether your php5.ini file takes effect, open a plain text editor and create a file called phpinfo.php. Insert the following line: <? phpinfo(); ?>
. Save this file to the root of your Website and then browse to yourdomain.com/phpinfo.php to test the settings.
Linux Shared Hosting
On Linux Shared Hosting accounts, you can kill the Web processes to get your php5.ini file to take effect.
To Kill Web System Processes on Linux Shared Hosting Accounts
- Log in to your Account Manager.
- Click Web Hosting.
- Next to the hosting account you want to use, click Launch.
- In the Stats & Monitors section of the Control Panel in your hosting account, click the System Processes icon.
- Click End Web and follow any prompts.
- Reload the phpinfo.php page to see if the desired changes have taken effect.
NOTE: We recommend removing the phpinfo.php file from your hosting account when you are finished testing.
Windows Shared Hosting
On Windows Shared Hosting accounts, you can recycle the application pool to get your php5.ini file to take effect.
NOTE: You must upload the php5.ini to the root of your account and use php5.ini files with Windows hosting accounts, not php.ini.
To Recycle the Application Pool on Windows Shared Hosting Accounts
- Log in to your Account Manager.
- Click Web Hosting.
- Next to the hosting account you want to use, click Launch.
- In the Tools section of the Control Panel in your hosting account, click the IIS Management icon.
- Click Recycle App Pool and follow any prompts.
- Reload the phpinfo.php page to see if the desired changes have taken effect.
NOTE: We recommend removing the phpinfo.php file from your hosting account when you are finished testing.