Vishal Monpara's Blog
Knowledge.ToString()

Blog  | Poem  | Article

php.ini changes have no effect


Today I tried to install PHP and MySQL on my local Windows XP Pro machine. Both were working fine individually but I couldnot connect to the MySQL from PHP code. I tried to change php.ini file but no matter what I do, changes were not reflected when I tried phpinfo() function.

It was showing Configuration File (php.ini) Path = C:\php\php.ini which is correct and I did not have any php.ini on any other location. Everytime I make changes, I was restarting the IIS Server but any how changes were not reflected. In resetting IIS what I was following is go to Control Panel > Administrative Tools > Internet Information Services > Expand [Computer Name] > Expand Website > Right Click on Default Website and press Stop button and again start it. But after sometime I found that this is NOT IIS restart. It is just Website restart. For IIS restart run the following command on Dos prompt.

iisreset /restart

And boom. I got my php correctly configured and now I can connect to MySQL from PHP code.

Posted On: 04/13/2007 10:21


Feedback

2 comments has been posted.

Jan Nordgreen @  11/23/2007 06:16

Thanks for posting this! I had the same problem. Read your post, stopped and started the apache server, and everything worked!

Thanks!

Jen @  12/28/2007 05:48

Holy moly, i couldn't figure it out. Then I read this. Thanks for the posting. Saved me who knows how long of scouring message boards!!


Post your comments
Name
Url
Comment

Submit


 

Rate Entry5.00
( 1 Votes)

 
1 2 3 4 5
Vote
1-Poor 5-Excellent