I am trying to learn Symfony, which "requires" the use of php on the command line / terminal for some tasks.
I like to store my php.ini in the /apache2/conf directory in order to have all the server configurations in one place (and I do not need to deal with Windows UAC every time I change something). Apache no problem setting php.ini default location with
PHPIniDir "C:/apache2/conf"
However, when running php from the terminal - not through the apache server - it looks for the file in the C: \ Windows directory by default, although it is not there:
C:\>php -i ... Configuration File (php.ini) Path => C:\Windows Loaded Configuration File => (none) Scan this dir for additional .ini files => (none) Additional .ini files parsed => (none) ...
Of course, I can get around this using php -c C:\apache2\conf ... every time I use it, but I would prefer a lighter and more permanent solution.
Is it possible? Thanks in advance!
Czechnology
source share