Skip to content

Commit

Permalink
Merge pull request #2 from samdark/patch-1
Browse files Browse the repository at this point in the history
Updated readme with more facts and formatting
  • Loading branch information
deemru committed Dec 16, 2015
2 parents a5ddc80 + f6cbe94 commit 7795d2c
Showing 1 changed file with 34 additions and 10 deletions.
44 changes: 34 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
# php-cgi-spawner
[![Build status](https://ci.appveyor.com/api/projects/status/6f2rqvltmp9ax4nd?svg=true)](https://ci.appveyor.com/project/deemru/php-cgi-spawner)

[php-cgi-spawner](https://github.com/deemru/php-cgi-spawner) is the smallest and easiest application to spawn a multiple php-cgi processes in Windows for your web server with fastcgi
[php-cgi-spawner](https://github.com/deemru/php-cgi-spawner) is the smallest and easiest application to spawn a multiple php-cgi processes in Windows for your web server with FastCGI.

- It spawns as many php-cgi on a port as you need
- It automatically restarts them if they crashed
- Example of 4 php-cgi on tcp/9000: php-cgi-spawner.exe php\php-cgi.exe 9000 4
- It spawns as many php-cgi on a signle port as you need.
- It automatically restarts them if they crashed.

# Download
## Usage

Go to [release](https://github.com/deemru/php-cgi-spawner/releases/latest) to download the application
If you have the following directory structure:

# Build
```
php-cgi-spawner.exe
php
php-cgi.exe
php.ini
```

Go to [src](src) directory and run [make.bat](src/make.bat) in a Visual Studio environment
In order to spawn 4 php-cgi on tcp/9000:

# Notice
```
php-cgi-spawner.exe php/php-cgi.exe 9000 4
```

Currently a maximum number of php-cgi processes is 64 because of MAXIMUM_WAIT_OBJECTS in WaitForMultipleObjects
As an alternative you may specify config file explicitly:

```
php-cgi-spawner.exe "php/php-cgi.exe -c php7.ini" 9000 4
```

`php-cgi` are spawned under the same user that runs `php-cgi-spawner.exe`.

## Download

Go to [release](https://github.com/deemru/php-cgi-spawner/releases/latest) to download pre-built binary.

## Build

Go to [src](src) directory and run [make.bat](src/make.bat) in a Visual Studio environment.

## Notes

- Currently a maximum number of php-cgi processes is 64 because of `MAXIMUM_WAIT_OBJECTS` in `WaitForMultipleObjects`.

0 comments on commit 7795d2c

Please sign in to comment.