http://wiki3.caucho.com/index.php?title=PHP_and_FastCGI&feed=atom&action=historyPHP and FastCGI - Revision history2024-03-28T21:59:53ZRevision history for this page on the wikiMediaWiki 1.18.0http://wiki3.caucho.com/index.php?title=PHP_and_FastCGI&diff=1382&oldid=prevFerg at 04:54, 17 November 20052005-11-17T04:54:02Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 04:54, 17 November 2005</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:Servlet Library]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== PHP compilation ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== PHP compilation ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>Ferghttp://wiki3.caucho.com/index.php?title=PHP_and_FastCGI&diff=1381&oldid=prevFerg at 04:29, 17 November 20052005-11-17T04:29:03Z<p></p>
<p><b>New page</b></p><div>== PHP compilation ==<br />
<br />
To use PHP in FastCGI mode, you need to compile it with --enable-fastcgi<br />
<br />
> ./configure --enable-fastcgi<br />
> make<br />
<br />
<br />
== PHP starting ==<br />
<br />
You will need to start PHP in fastcgi mode and enable a number of concurrent processes. <br />
<br />
> PHP_FCGI_CHILDREN=256 php -b localhost:6666<br />
<br />
Note in particular that you may need to set the PHP_FCGI_CHILDREN environment variable. If that value is too low, PHP will not be able to handle multiple requests.<br />
<br />
== resin-web.xml configuration ==<br />
<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet servlet-name="php-fastcgi"<br />
servlet-class="com.caucho.servlets.FastCGIServlet"><br />
<init><br />
<server-address>localhost:6666</server-address><br />
</init><br />
</servlet><br />
<br />
<servlet-mapping url-pattern="*.php" servlet-name="php-fastcgi"/> <br />
</web-app></div>Ferg