GithubHelp home page GithubHelp logo

ibluemind / nginx-svc Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 116 KB

A .NET 2.0 Windows service wrapper for the NGINX HTTP server and proxy.

Home Page: https://github.com/lkinsella/nginx-svc

License: MIT License

C# 100.00%

nginx-svc's Introduction

NGINX +PHP service for Windows
==============================

This service for Windows is wrapper for the Nginx server.
The service is created by Lloyd Kinsella, and modifed by Han Manjong, for supporting PHP.

The service wrapper requires .NET 2.0, which should be installed on most modern Windows machines.

Install & Uninstall
===============

nginxsvc.exe /install [/silent]
nginxsvc.exe /uninstall [/silent]

/silent is optional and instructs the installer not to show a message of success or failure when
installing or uninstalling the service.

Configuration
============

You need to edit the nginxsvc.exe.config file and set the path value to where NGINX is installed,
by default this is set as shown below, but may not be the version or location of your NGINX build.

Set gracefulQuit to use "-s quit" instead of "-s stop" when signalling the NGINX processes to stop.
At odd times, NGINX processes do not stop, set forceStop to have the wrapper forcibly kill the
remaining NGINX processes.

<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="nginxPath" value="C:\Program Files (x86)\Nginx\1.5.2"/>
    <add key="gracefulQuit" value="false"/>
    <add key="forceStop" value="true"/>
	<add key="php_cgi_path" value="C:\Program Files (x86)\PHP\5.2.17"/>
	<add key="fastcgi_pass" value="127.0.0.1:9000"/>
	<add key="php_ini_path" value="C:\Program Files (x86)\PHP\5.2.17"/>
  </appSettings>
</configuration>

Added functions are php_cgi_path, fastcgi_pass, and php_ini_path.
Set the value of php_cgi_path to where php-cgi.exe is.
And set the php_ini_path to where php.ini is.

License
=======

See the license.txt file for license and warranty details etc.


Credit
=====

Originally developed by Lloyd Kinsella.
Web: http://www.lloydkinsella.net/
Github: https://github.com/lkinsella/nginx-svc
Twitter: http://www.twitter.com/lloydkinsella




Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.