Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FCGI stuff #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorial-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ DocumentRoot /apache/htdocs

Options ExecCGI

FCGIWrapper /apache/bin/php-fcgi-starter/php-fcgi-starter
FcgidWrapper /apache/bin/php-fcgi-starter/php-fcgi-starter .php

</Directory>

Expand All @@ -85,7 +85,7 @@ DocumentRoot /apache/htdocs
I will no longer be discussing the overall configuration, but will instead only be focusing on the differences from Tutorial 2. There are three new modules:
Added to the _suEXEC_ and _FCGI_ modules is the _Mime module_, which enables us to assign the _.php_ file suffix to the _FCGI daemon_. It is assigned using the _AddHandler directive_.

The _/apache/htdocs_ directory now needs the additional _ExecCGI_ option. And finally, the _FCGIWrapper_. This is the connection between the web server and the _FCGI daemon_ yet to be configured. Once the first request using the _.php_ suffix is received by the web server, the server calls a _wrapper script_, starting the _FCGI daemon_, which from this time on handles the _PHP requests_.
The _/apache/htdocs_ directory now needs the additional _ExecCGI_ option. And finally, the _FcgidWrapper_. This is the connection between the web server and the _FCGI daemon_ yet to be configured. Once the first request using the _.php_ suffix is received by the web server, the server calls a _wrapper script_, starting the _FCGI daemon_, which from this time on handles the _PHP requests_.

_FastCGI_ is a method for executing dynamic program code from a web server. It is a very fast method which for the most part leaves the server untouched and runs the application on a separate daemon. To increase the speed, _FastCGI_ provides multiple instances of this daemon, allowing requests to be processed without having to wait. In practice, this is a promising gain in performance and, more importantly, an architecture that saves memory, as will be discussed in more detail below.

Expand Down