Jump to content

Windows Server 2003 PHP configuration trouble


archer007

Recommended Posts

I am having trouble configuring PHP on my Windows 2003 32-bit Server box. I'm using Apache 2.2.9 and PHP 5.2.6 and their Win32 installers. I've uninstalled and re-installed PHP and Apache several times in addition to restarting the box and Apache. I managed to get PHP running once, but it wouldn't load any extensions (and I need mysql).

 

Here are the config files:

httpd.conf

pnp.ini

 

Any advice will be appreciated.

Yes, I realize it is misspelled, but I do not see an edit link.

 

I got it working now, but phpinfo(); is saying that my extension_dir is C:\php5 when it is supposed to be C:\php. Typing "extension_dir "C:\php\ext"" into httpd.conf and saving has no effect.

The php .msi installer is bad news. Every person who uses it does not get the expected results. I don't think there is any specific documentation, but I believe I saw that it expects you to use the Windows control panel add/remove to enable extensions.

 

As a general rule, you should not be putting php settings into the httpd.conf file. I believe your current problem is that the php.ini that you are changing is not the one that php is using.

 

To get to the point where you have a working system and the php.ini you are changing is getting used, I recommend using the full php .zip package and install this yourself. The following thread contains a concise list of instructions on installing apache/php - http://www.phpfreaks.com/forums/index.php/topic,189883.0.html

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.