x64architecture / wnmp

An easy Nginx, MariaDB and PHP environment for Windows.
https://wnmp.x64architecture.com
GNU General Public License v3.0
508 stars 110 forks source link

Auto-restart PHP-CGI after crash #107

Closed beppe9000 closed 5 years ago

beppe9000 commented 5 years ago

Can a checkbox be added to automatically restart php in case of crash? It seems occurring to me pretty often for no apparent reason.

x64architecture commented 5 years ago

There probably is an issue with the php build, I'll look into it.

beppe9000 commented 5 years ago

my environment is windows server 2016 (x64), using only nginx and php because i have an indipendent mysqld instance on the system. I set 5 php instances and they either crash at the same time or are not relaunched. I am testing EspoCRM with this configuration.

chang-zhao commented 5 years ago

I experienced the same issue twice yesterday:

PHP silently stops (which may be normal), but then it doesn't restart (though WNMP sees and shows that it's stopped), so I had to restart it by clicking the button "Start".

Please make it start automatically if it stopped on its own.

Windows 7 x64

beppe9000 commented 5 years ago

my workaround is to set 50 instances in the control panel

x64architecture commented 5 years ago

Sorry about this issue it was a regression (was fixed before see #8 but was removed on accident) for the (imo redundant requirement) of the environment variable PHP_FCGI_MAX_REQUESTS.