Search code examples
phpconfigurationscopeinipublic-html

Why is my custom php.ini file not loaded site wide while placed in /public_hml?


I created a custom php.ini ... it's located in /public_html.

Shouldn't it be valid and used for the whole site and directories under public_html ?

It seems not to be loaded e.g. in /public_html/cms/usr

I looked for answers on the internet or other sections of Stackoverflow but strangely did not find any answers.


Solution

  • The php.ini file is loaded by the PHP interpreter when it starts up. The locations searched are listed on the PHP.net website.