archer007 Posted September 5, 2008 Share Posted September 5, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122931-windows-server-2003-php-configuration-trouble/ Share on other sites More sharing options...
archer007 Posted September 5, 2008 Author Share Posted September 5, 2008 I'm getting HTTP 500 errors with the current config files I posted. Quote Link to comment https://forums.phpfreaks.com/topic/122931-windows-server-2003-php-configuration-trouble/#findComment-634902 Share on other sites More sharing options...
corbin Posted September 6, 2008 Share Posted September 6, 2008 Errrr... it's php.ini, not pnp.ini Also, have you checked the Apache error log? Quote Link to comment https://forums.phpfreaks.com/topic/122931-windows-server-2003-php-configuration-trouble/#findComment-635005 Share on other sites More sharing options...
archer007 Posted September 6, 2008 Author Share Posted September 6, 2008 error.log Quote Link to comment https://forums.phpfreaks.com/topic/122931-windows-server-2003-php-configuration-trouble/#findComment-635016 Share on other sites More sharing options...
archer007 Posted September 6, 2008 Author Share Posted September 6, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122931-windows-server-2003-php-configuration-trouble/#findComment-635022 Share on other sites More sharing options...
corbin Posted September 6, 2008 Share Posted September 6, 2008 Find the extension_dir directive in php.ini. Quote Link to comment https://forums.phpfreaks.com/topic/122931-windows-server-2003-php-configuration-trouble/#findComment-635028 Share on other sites More sharing options...
PFMaBiSmAd Posted September 6, 2008 Share Posted September 6, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/122931-windows-server-2003-php-configuration-trouble/#findComment-635038 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.