[Info-vax] php.ini location

Arne Vajhøj arne at vajhoej.dk
Sat Apr 8 14:48:24 EDT 2023


On 4/8/2023 1:50 PM, 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:
>>> 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"

> 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.

Is the PHP module loaded?

Arne




More information about the Info-vax mailing list