Site5 - Built For Designers & Developers MENU

Where do I put my php.ini file?

[11 Grey Star Level]

This has to be the question asked the most often — Where does the php.ini file go?

If multiple domains are hosted using “pointing” (i.e. a pointed domain’s web root is a sub-directory of a “primary” domain), does this affect the answer? Will the php.ini associated with the primary domain affect a pointed domain?

Answer #1

If you drop a php.ini file in a directory, it will only affect the PHP scripts within that directory (not any of the sub-directories).

However, for custom PHP changes, our servers use a .user.ini file.

If you want to setup one .user.ini file for your entire account, please follow the directions in the tutorial in our KB:

http://kb.site5.com/php/how-to-make-custom-php-changes-using-a-user-ini-file/

Answers Answered By: gmcmillan [38 Green Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.