PHPIniDir broken under windows 7?

Posted by bobbyb on Stack Overflow See other posts from Stack Overflow or by bobbyb
Published on 2009-12-16T05:47:51Z Indexed on 2010/06/01 7:33 UTC
Read the original article Hit count: 276

Filed under:
|
|
|
|

I had a server running on a windows xp machine using apache2 with php and mysql. I've recently upgraded to windows 7 and have been having trouble getting it to work. Apache works fine and php works, but I can't seem to get it to work with a php.ini file.

When I set PHPIniDir to a directory with a php.ini file, the Apache service does NOT start. When I set PHPIniDir to a directory with NO php.ini file, the Apache service does start. When I leave out PHPIniDir, the Apache service does not start.

Has anyone found a fix for this problem? Thanks!

EDIT:

PHPIniDir "C:\Windows" #works (no php.ini file)

PHPIniDir "C:\Program Files (x86)\php\" #does not work (contains php.ini file)

i enable at most one at any given time.

© Stack Overflow or respective owner

Related posts about php

Related posts about apache