Frequently Asked Questions

Can I add a PHP initialization file to my hosting account?

Print this Article
Comment on this Article
Last Updated: June 27, 2011 11:50 AM

Here is the Lowdown: PHP initialization files can manage form, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging.

Your ability to add a php.ini file to your hosting account depends on the type of hosting account you are running:

  • Windows IIS6 accounts do not support PHP.
  • Windows IIS 7 accounts always run PHP 5.
  • Linux accounts support both PHP 4 and PHP 5.

If you are running Linux, and need to determine which version of PHP you are running, see Finding Your PHP Version with Linux Hosting or Dedicated Servers.

IMPORTANT: If you are running PHP 4, name your initialization file php.ini. If you are running PHP 5, name your initialization file php5.ini. Always upload the initialization file to the root directory of your site.