Hướng dẫn restart php windows

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?

Hướng dẫn restart php windows

Toto

15.6k40 gold badges29 silver badges39 bronze badges

asked Nov 21, 2013 at 19:49

Hướng dẫn restart php windows

2

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

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

kevinmicke

9203 gold badges11 silver badges23 bronze badges

answered Nov 21, 2013 at 20:46

Hướng dẫn restart php windows

HichemHichem

3442 silver badges7 bronze badges

0

WinR iisreset

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

Hướng dẫn restart php windows

answered Sep 1, 2015 at 10:36

Hướng dẫn restart php windows

thethe

2,6211 gold badge25 silver badges34 bronze badges

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.

answered Aug 24, 2019 at 2:50

Hướng dẫn restart php windows

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.

answered Oct 15, 2021 at 7:10

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

Go to Start -> click Run -> type iisreset, and then click OK.

If iisreset command is not recognized, then

  1. Click win -> search "Turn windows features on or off"
  2. Tick the checkbox "Internet Information Service"
  3. click ok and after completion try the above process again.

answered Dec 17, 2021 at 10:50

Hướng dẫn restart php windows

0

PHP là gì?

PHP viết tắt của Hypertext Preprocesor, là ngôn ngữ lập trình PHP được sử dụng để xây dựng các website và ứng dụng web.

Việc website xảy ra lỗi 500, 502 là việc không thể diễn ra trên website. Dưới đây là 1 trong biện pháp ngắn các bạn Có thể xử lý khi gặp tình huống này.

Đăng nhập vào Hosting SecureWeb

Hướng dẫn restart php windows

Đây là trang giao diện chính của hosting SecureWeb là nơi chứa code và database của các website.

Tiếp theo vào mục Settings –> PHP settings như ảnh dưới

Hướng dẫn restart php windows

Hướng dẫn restart php windows

Hướng dẫn restart php windows

Sau khi đã vào mục đã chọn các bạn chỉ cần bấm vào nút Restart 

Bước này PHP thực thi khởi động lại để quá trình Website chạy lại ổn định hơn

(1) Là mục chọn các phiên bản PHP tuỳ thuộc vào độ tương thích của theme, wordpress.

(2) mục để apply phiên bản PHP đã chọn

(3) Khởi động lại PHP ở phiên bản hiện tại.

Kết luận:

Trên đây là cách bạn có thể xử lý lỗi trang web khi đang xảy ra lỗi không truy cập được, tuy nhiên cách này giải quyết được 1 số trường hợp nhưng chưa triệt để. Hy vọng có thể giúp ích được cho các bạn!!!