K
K
Konstantin Malyarov2021-04-26 08:16:08
cmd/bat
Konstantin Malyarov, 2021-04-26 08:16:08

After some time the command in cmd stops, what's the problem?

There is a command in cmd:
php-cgi.exe - b 127.0.0.1:9123 I

run it, but after some time - a day, an hour, a week. The team stops. What is the correct way to run this command?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
feniksdv, 2021-04-26
@feniksdv

And if you use the -t switch?

A
Alexey Dmitriev, 2021-04-26
@SignFinder

The correct approach is to go google for "php-cgi.exe as service" and do as people write to run php-cgi as a windows service.

H
hint000, 2021-04-26
@hint000

Quite an old article (translation): https://habr.com/ru/post/179399/
Quote:

PHP is built to die. This does not mean that a fairly capable (to some extent) programming language will disappear into nowhere; it just means that your PHP code can't run forever.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question