Frequently Asked Questions

Help Center Search

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

Print this Article
Comment on this Article
Last Updated: November 10, 2008 11:03 AM

If you are running Hosting Configuration 2.0, you can create custom .ini files for both PHP 4 (php.ini) and PHP 5 (php5.ini) in the root directory of your site. By default, only php.ini is automatically created during new account setup.

Initialization files can be used to manage form, server, and environmental variables, server-side cookies, temporary directories, error display, and error logging.

NOTE: php.ini and php5.ini files must be in the root directory to function properly. These files will not work if placed in subdirectories, whether or not they are aliased to the root directory.