Welcome! Log In Create A New Profile

Advanced

Start NGINX+PHP as windows service

Posted by kind 
Start NGINX+PHP as windows service
October 31, 2011 06:33PM
Hi, sorry for the n00b question, but, i cant find much info about nginx on windows...

Here is my problem, i have a VPS working with windows server 2003 sp2, and, for some reason, after a while i started the nginx+ php on cgi mode, close the php and all my site stop working (bcoz its all on php)...

So.. i wanna know if there is some way to start both services as a windows service, then, i hope, windows will not close php
Or.. if this isn't possible, some batch file to autostart the service when its down.

Here is the code of how i start nginx+php-cgi

@ECHO OFF
start nginx
c:\nginx\php\php-cgi.exe -b 127.0.0.1:9000 -c c:\nginx\php\php.ini



Thx in advance for the help.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready