Why isn't my php.ini file taking effect?
A PHP initialization file (php5.ini
) 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 Web site and then browse to yourdomain.com/phpinfo.php to test the settings.
Which process you use depends on your hosting account's operating system. For more information, see What type of hosting account do I have?
Linux Shared Hosting
On Linux Shared Hosting accounts, you can end the Web processes to get your php5.ini
file to take effect. For more information, see Viewing and Ending System Processes on Linux Shared Hosting Accounts.
Windows Shared Hosting
On Windows Shared Hosting accounts, you can recycle the application pool to get your php5.ini
file to take effect. For more information, see Recycling Your Application Pool with Windows Hosting Accounts.