everbright Posted July 23, 2009 Share Posted July 23, 2009 Hi all, I've upgraded my PHP from v5.2.3 to v5.2.10, and encountered something strange, which hopefully some of you have encountered before and found a fix. Here's the details. Environment Windows Server 2003 Enterprise Edition Apache 2.2.11 PHP 5.2.3 -> 5.2.10 What I did to upgrade 1. Get the zipped binary version of PHP v5.2.10 for Windows from php.net. 2. Unzip the file in 1) to D:\PHP\5.2.10 3. Copy the php.ini file from my existing v.5.2.3 installation (located in D:\PHP\5.2) to the unzipped installation in 2). 4. Back-up the 5.2.3 installation. 5. Renamed D:\PHP\5.2.10 to D:\PHP\5.2 6. Restart Apache (which is using the PHP installation in D:\PHP\5.2) What's strange 1. Apache started up correctly without any errors. 2. I could also run PHP scripts hosted by the Apache server. 3. However when I tried to run phpinfo(), the script tells me that I'm still using v5.2.3! 4. I ran "php -version" on a cmd window in D:\PHP\5.2 and confirmed that the PHP installation there is indeed v5.2.10. 5. Also checked that the version of D:\PHP\5.2\php5apache2_2.dll is v5.2.10 6. Re-booting didn't help either. 7. Deleting the v5.2.3 installation completely didn't help either. 8. I've also checked for any installations elsewhere, and there are no other installations of PHP elsewhere. Does anyone have any ideas what else I might be missing here? I've previously upgraded PHP from v5.1.4 to v5.2.3 and did not encounter this. So seems strange that this would happen with this upgrade. Appreciate any help with this. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/167077-apache-not-loading-upgraded-version-of-php/ 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.