Moron Posted September 1, 2009 Share Posted September 1, 2009 This is probably a lame question, but like the title says, how do you restart php so that php.ini changes will take effect? Quote Link to comment https://forums.phpfreaks.com/topic/172705-changed-phpini-file-how-do-i-restart-php/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 1, 2009 Share Posted September 1, 2009 You need to restart the web server that php is part of. Quote Link to comment https://forums.phpfreaks.com/topic/172705-changed-phpini-file-how-do-i-restart-php/#findComment-910335 Share on other sites More sharing options...
Moron Posted September 1, 2009 Author Share Posted September 1, 2009 You need to restart the web server that php is part of. Thanks. That's what I was afraid of. This is a very busy server. EDIT: wait a second..... Do you mean to restart the actual computer or the website? If you mean the website, I already did that. This one is on IIS and I stopped and restarted the default website. I uncommented the php_ldap.dll module, restarted the website, yet there's still no LDAP section in the phpinfo () file. Ideas? Quote Link to comment https://forums.phpfreaks.com/topic/172705-changed-phpini-file-how-do-i-restart-php/#findComment-910384 Share on other sites More sharing options...
wildteen88 Posted September 1, 2009 Share Posted September 1, 2009 Make sure the php.ini your are editing is the one php is reading. To check this, run the phpinfo() function and check the line labelled asLoaded Configuration File. If PHP is reading a php.ini, this will show the full path to its location. You only need to restart the HTTP server (in your case IIS) when you have made any changes to the php.ini. Quote Link to comment https://forums.phpfreaks.com/topic/172705-changed-phpini-file-how-do-i-restart-php/#findComment-910401 Share on other sites More sharing options...
Moron Posted September 1, 2009 Author Share Posted September 1, 2009 Make sure the php.ini your are editing is the one php is reading. To check this, run the phpinfo() function and check the line labelled asLoaded Configuration File. If PHP is reading a php.ini, this will show the full path to its location. You only need to restart the HTTP server (in your case IIS) when you have made any changes to the php.ini. Here's the weird thing.... I don't have that Loaded Configuration File entry when I run phpinfo(). Not at all. I have it when I run it on my local box (with Wamp 5), but not on this server. Quote Link to comment https://forums.phpfreaks.com/topic/172705-changed-phpini-file-how-do-i-restart-php/#findComment-910501 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.