0

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.

Mike
  • 23,542
  • 14
  • 76
  • 87
AFvS
  • 17
  • 3
  • If it gets picked up depends on the SAPI or FCGI wrappers. A `.user.ini` is often recognized implicitly. – mario Jun 17 '15 at 23:16
  • Did you restart httpd? – Mike Jun 17 '15 at 23:28
  • No, it's on a shared web server. The account was switched recently to php version 5.4.13 that's what probably changed the behavior. – AFvS Jun 18 '15 at 08:18

1 Answers1

0

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

Grokify
  • 15,092
  • 6
  • 60
  • 81
  • I've read that page. I have the following line in my .htaccess : #SetEnv PHPRC /home//public_html/php.ini – AFvS Jun 17 '15 at 23:24