Setting a PHP script as a Windows Service

后端 未结 7 1196
春和景丽
春和景丽 2020-12-01 03:29

I need to set up a PHP script as a windows service.

I need it to run regardless of which user is logged in, and on system start up - so it sounds like a windows ser

7条回答
  •  情深已故
    2020-12-01 03:53

    After a few days... i found this magnific option!

    He build an .exe that recive the service options and works fine!

    https://superuser.com/questions/628176/php-cgi-exe-as-a-windows-service/643676#643676

    the command correct:

    sc create FOO binPath= "service.exe \"C:\php\php-cgi.exe -b 127.0.0.1:9000 -c C:\php\php.ini"\" type= own start= auto error= ignore DisplayName= "FOO php"

提交回复
热议问题