Update for the benefit of searchers with a similar problem.
I tried many reboots and many permutations of the file paths always with the
same result:
syntax error on line xxx of F:/Apache2.2/conf/httpd.conf:
Invalid command 'PHPIniDir',

In desperation to get something working, after wasting so much time on what
should be trivial, figured I'd try the msi install binary so I downloaded
that but before running that, for one last try, even though it wasn't what I
wanted, I copied the php directory from my F drive to C
and edited httpd.conf accordingly.

Well it worked. PHP ran just like it should have done several days back.
So at that stage thinking I was crazy, I renamed the C drive PHP folder so
it wouldn't be found and redid the httpd.conf to point back at the F drive.
Well that worked too! So now the original config that would never work for
several days suddenly starts working. wtf?

The only way to retrace my steps would be to do a fresh install of XP and I
just don't have time so the mystery remains but there's a path for anyone
else who has this problem.

BTW (off topic): they use very poor email address mangling on this list so
be warned you may get spammed if you join.

On 2/27/07, j k <[EMAIL PROTECTED]> wrote:

Just installed Apache 2.2 and it is up and running.
trying to add PHP5 using the instructions add these to httpd.conf:

LoadModule php5_module "F:/php-5.2.1/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "F:/php-5.2.1"

I have done this successfully on earlier versions of both PHP and
Apache...
but this one chokes on the PHPIniDir on apache restart:

Syntax error on line 121 of F:/Apache2.2/conf/httpd.conf:
Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not
included in the server configuration.



No error message when the PHPIniDir line is commented out so it is finding
the dll OK.

Nothing in the error logs to help.
Tried using \ in the PHPIniDir but that didn't help.

Any ideas?

Reply via email to