Problems getting php.ini to change

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
cruggiero
Forum Newbie
Posts: 1
Joined: Wed Dec 06, 2006 9:43 am

Problems getting php.ini to change

Post by cruggiero »

I'm using IIS to host a php server. I'm trying to get the mysql extension to work but it seems no matter what I do I can't get the php.ini file changes to take affect. I've tried restarting the server and IIS while the php.ini file WASNT IN THE C:\PHP\ DIRECTORY and it still give the same information on a php info dump. Please help!
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

Post by Skittlewidth »

Depending on how PHP got installed on the server you might find that there are php.ini files in various places on your system, and only one of them will be the one that PHP/IIS is taking notice of, i.e the one in C:\PHP is typically not the one that gets used, although this is how I prefer to set up my local testing PCs (albeit with Apache).
Do a search for any other php.ini files and see if you have duplicates.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

phpinfo() will give you the correct php.ini path
Post Reply