« Underground PHP and Oracle Manual 1.4 Available | Main | Zend Core for Oracle 2.0 Released »

PHP 5.2.2 Setup on Windows

I've just been setting up PHP 5.2.2 on Windows XP Pro, with Apache 2.0.59. I couldn't get Apache to find the correct php.ini file. It was looking in C:\Windows, instead of where I installed PHP. The httpd.conf file told Apache to look in C:\Program Files\PHP, but it wasn't. So none of the extensions were loading.

I figured out that changing the back slashes to forward slashes fixes the problem. I wanted to blog about this as The Underground PHP and Oracle Manual that we've just released doesn't mention this problem, and you may encounter it yourselves. So if you do, you know the fix. And yes, I've logged a bug with PHP for this. :-)

Comments (5)

Tony:

Your this article is very good

JPFrye:

I am happy I found this.
I will be setting up something today, in the same configuration as you have described here.
It will be my first experience in Apache and PHP - so I would have been lost.
Thank you, thank you.

Nick:

I noticed this when setting up a local debug server on my dev box, I just specified the complete file name and it worked.

Default (looks in c:\windows):
PHPIniDir "C:\Program Files\PHP"

Works fine:
PHPIniDir "C:\Program Files\PHP\php.ini"

Alison Holloway:

I've just been informed that this bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/.

The bug is http://bugs.php.net/?id=41408&edit=2

Hello! Pretty nice site, wants to see much more on it! :)
Bye.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on May 16, 2007 10:01 PM.

The previous post in this blog was Underground PHP and Oracle Manual 1.4 Available.

The next post in this blog is Zend Core for Oracle 2.0 Released.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle