15

I am trying to load the openssl module, I uncommented it in the php.ini:

extension=php_openssl.dll

But when running my script I get an error:

Failed to connect: 0 Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?

From the PHP documentation:

After activating an extension, save php.ini, restart the web server and check phpinfo() again. The new extension should now have its own section.

I am using a windows server machine, This is production, I really don't want to reboot the server, is there an alternative?

2
  • what type of server do you have ? "Appserver" "wampserver" ??? you have to find httpd.exe process and kill it then restart it
    – K3rnel31
    Nov 21 '13 at 20:21
  • @k3rnel31 its IIS, sorry I forgot to mention
    – meda
    Nov 21 '13 at 20:37
20

To restart PHP on IIS, you actually need to restart IIS:

Click Start, click Run, type IISReset, and then click OK.
0
9

WinR iisreset

Or, more verbose: iisreset inside a powershell opened as administrator - or even inside a Cygwin shell.

enter image description here

4

For those that stumbled upon this answer and you're running Windows 10 or another version with PHP but you're NOT running any of the usual web server apps (WAMP, ServerDesktop, IIS, etc), open your task manager and you will probably see "CGI/Fast CGI" which is the PHP. Right-click and end task. The app will not go away but instead, restart with your updated configuration.

0
0

I've found that, instead of restart IIS entirely, it's just enough to restart the Application Pool associated with the specific site.

By IIS Manager, first click the Site name on the left panel, then "Basic Settings" on the right panel, so you can see what's the associated application pool. Finally go to "Application Pools" section, click the proper pool and then click "restart" on the right panel.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.