Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using Xampp for a local dev server, I am trying to upgrade it so I can use the latest version of PHP.

I had it installed in my c drive c:\webserver\php

I just installed everything new in a new drive D

d:\webserver\php

I then boot everything up and then I run phpinfo() and it is still showing my old version of PHP and even points to the old php installation C:\webserver\php\php.ini

Am I missing something obvious here?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Did you change the apache config to use the new PHP module instead of the old one? You're going to need the following in your httpd.conf:

LoadModule php5_module "D:/webserver/php/php5apache2.dll"
PHPIniDir "D:/webserver/php/"

...or something to that effect.

share|improve this answer
add comment

PHP (like many other applications) has a set of folders where it looks for the configuration file, documented in the manual.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.