Php.ini file in the wrong place?

What issue or error are you experiencing?

According to phpinfo() my “loaded configuration file” is in the Windows “AppData” folder instead of the site’s Local “conf” folder. Is that normal? Everything I see says it should be in conf/php/php.ini.hbs. Instead it’s at C:\Users\USERNAME\AppData\Roaming\Local\run\IOuKPEnu_\conf\php\php.ini

And every time I try to update that php.ini file and restart my site, it resets the contents of the file, erasing whatever update I’ve made.

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

System Details

  • Local Version:
    Version 7.2.1+6433
  • Operating System (OS) and OS version:
    Windows 10

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hey @tjhickey - Local has a “parent” php.ini file that we use to generate each site’s unique php.ini at runtime. I get why that is confusing - and what you see is expected, changes made to the parent inside AppData/ will be overwritten.

Instead, you can make changes to the site-specific config - can you check this out and see if it resolves your issue? Modifying php.ini file gets reverted after site restart - #8 by ARed

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.