[Info-vax] php.ini location

plugh jchimene at gmail.com
Sat Apr 8 13:54:31 EDT 2023


On Saturday, April 8, 2023 at 10:50:44 AM UTC-7, issinoho wrote:
> On Saturday, 8 April 2023 at 18:24:22 UTC+1, Arne Vajhøj wrote: 
> > On 4/8/2023 1:16 PM, issinoho wrote: 
> > > From PHPINFO ()... 
> > > System OpenVMS X86VMS 0 E9.2-1 VMware,_Inc._VMware7,1 
> > > Build Date Apr 6 2022 09:59:09 
> > > Configure Command no value 
> > > Server API Apache 2.0 Handler 
> > > Virtual Directory Support disabled 
> > > Configuration File (php.ini) Path no value 
> > > Loaded Configuration File (none) 
> > > Scan this dir for additional .ini files (none) 
> > > Additional .ini files parsed (none) 
> > > 
> > > $ dir PHP$ROOT:[ETC] 
> > > 
> > > Directory PHP$ROOT:[etc] 
> > > 
> > > cacert.pem;1 php.ini;3 php.ini-dev;1 php.ini-prod;1 
> > > 
> > > Total of 4 files. 
> > > 
> > > Anyone know why the php.ini file is not being picked up and/or where it needs to reside? 
> > I have always found that very confusing and used the easy solution 
> > of specifying it explicit. 
> > 
> > Example from my VMS httpd.conf: 
> > 
> > LoadModule php7_module "/disk1/net/php/mod_php_apache-2_0.exe" 
> > PHPIniDir "/disk1/net/php" 
> > 
> > And on Windows (with a very old PHP version): 
> > 
> > LoadModule php5_module 
> > "C:/DivNative/32bit/php-5.6.23-Win32-VC11-x86/php5apache2_4.dll" 
> > PHPIniDir "C:/DivNative/32bit/php-5.6.23-Win32-VC11-x86" 
> > 
> > Probably reveals that I am no an Apache & PHP expert, but it works 
> > and it is easy to understand. 
> > 
> > Arne
> Thanks for the help but no matter what I put on that line, I get this... 
> 
> AH00526: Syntax error on line 164 of /apache$root/000000/conf/httpd.conf: 
> Listen setup failed 
> 
> I'm trying this sort of thing... 
> PHPIniDir "/php$root/etc" 
> 
> Also tried a full path from the disk down and same error.

what does "php -i" tell you? Pipe that output to SEARCH for the string ".ini"



More information about the Info-vax mailing list