https://github.com/marcelog/fastpagi
A FastAGI server to be used with PAGI applications
https://github.com/marcelog/fastpagi
Last synced: 8 months ago
JSON representation
A FastAGI server to be used with PAGI applications
- Host: GitHub
- URL: https://github.com/marcelog/fastpagi
- Owner: marcelog
- License: apache-2.0
- Created: 2011-09-11T20:23:43.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2013-07-17T12:26:04.000Z (almost 13 years ago)
- Last Synced: 2023-03-11T13:53:24.673Z (over 3 years ago)
- Language: PHP
- Homepage:
- Size: 109 KB
- Stars: 6
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Introduction
------------
This is a very quick and dirty way of setting up a PAGI application via FastAGI.
You might find the code useful even to launching your own non-PAGI apps.
Configuring
-----------
Copy config.ini.example to config.ini.
Edit config.ini
The [php] section can be filled with options to be set by ini_set automagically.
The [server] section customizes things like address to listen for connections:
* listen: address:port
* pid: Absolute path to where to write the pid file of the server
The [application] section contains some very specific options related to PAGI:
* log4php: Absolute path to log4php.properties file to be used by your PAGI app.
* bootstrap: Absolute path to be required prior to executing your PAGI app (typically
will set an include path or require some other files).
* class: The name of your PAGIApplication class.
Running
-------
Just do a
$ php fastagi.php /path/to/my/config.ini &
You may kill(1) the process if you want to terminate it.