-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from samdark/patch-1
Updated readme with more facts and formatting
- Loading branch information
Showing
1 changed file
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |