PHP.ini
Posted by: cristian (---.dynamic.dsl.maxnet.co.nz)
Date: March 24, 2010 02:41AM

Hi,

Today I installed WampServer 2 on Windows XP which all works fine.
I have two versions of PHP installed, PHP 5.3.0 which WampServer 2 installs by default and I also got PHP 5.2.5

The problem I have is that when I change between the two PHP versions in WampServer the same PHP.ini is loaded.

This is what phpinfo() says and I have also checked that this is true by renaming the php.ini file then no php.ini is loaded at all.

Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\Program Files\wamp\bin\apache\Apache2.2.11\bin\php.ini

How can change this so that the corresponding php.ini file is loaded depending on the selected version of PHP.

Thank you

Options: ReplyQuote
Re: PHP.ini
Posted by: yfastud (Moderator)
Date: March 24, 2010 03:24AM


Options: ReplyQuote
Re: PHP.ini
Posted by: cristian (---.dynamic.dsl.maxnet.co.nz)
Date: March 24, 2010 03:44AM

Before I installed WampServer I uninstalled PHP 5.2.5 which I was running and also restarted the computer.

I have also checked the Environment variables to make sure it was not set there.

any other ideas?

Thank you for your help in advance

Options: ReplyQuote
Re: PHP.ini
Posted by: yfastud (Moderator)
Date: March 24, 2010 04:02AM

search and delete any php.ini and httpd.conf outside wamp folder

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: PHP.ini
Posted by: cristian (---.dynamic.dsl.maxnet.co.nz)
Date: March 24, 2010 04:33AM

I followed your suggestion but PHP still checks for the php.ini file in C:\WINDOWS and because it's none there it then loads it from C:\Program Files\wamp\bin\apache\Apache2.2.11\bin

Options: ReplyQuote
Re: PHP.ini
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: March 24, 2010 05:30AM

i dont see any issue?


php ALWAYS expects c:/windows

But it is loading the one in the apache folder. which is right.


when u switch versions.. wamp copies the 'phpforapache.ini' file in the php folder and moves it into the 'php.ini' in the apache folder.


you shud NEVER edit the php.ini in any folder..


ALWAYS - select your version of php on the menu. then left click wamp icon>php>php.ini

this will open the file for the loaded version of php

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 03/24/2010 05:31AM by stevenmartin99.

Options: ReplyQuote
Re: PHP.ini
Posted by: cristian (---.dynamic.dsl.maxnet.co.nz)
Date: March 24, 2010 11:21AM

Steven, thank you for your response. it now makes sense

Options: ReplyQuote


Sorry, only registered users may post in this forum.