Which php.ini is loaded?
Posted by: kapa (---.tn.glocalnet.net)
Date: August 06, 2009 08:06AM

I'm using Wampserver2i and have installed it successfully (with a white tray icon).
Have previously installed php on the same computer, and now have a conflict regarding the php.ini file that Wampserver php loads. It keeps loading the other php-versions ini-file.

Looking at phpinfo() it shows (yes, php runs but with the wrong ini-file):

Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\Program Files\PHP\php.ini

The loaded config file belongs to the earlier php-version and not the wampserver-version.

In what order does the wampserver php look for its config file?

Have searched the forum and googled without any luck.

Thanks,
Karl

Options: ReplyQuote
Re: Which php.ini is loaded?
Posted by: kapa (---.tn.glocalnet.net)
Date: August 06, 2009 08:25AM

Found 2 solutions...

1. Remove old php.ini, then the wampserver ini-file is found (magically)

2. Better: added this directive to "httpd.conf" (Apache config)

PHPINIDir C:\wamp\bin\apache\Apache2.2.11\bin

Still don't understand why it didn't work in the first place, but I'm quite happy.

/Karl

Options: ReplyQuote
Re: Which php.ini is loaded?
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: August 06, 2009 09:18AM

WAMP automatically handles the php.ini for you.

The php.ini php reads is located in the Apache bin directory.

Options: ReplyQuote


Sorry, only registered users may post in this forum.