Differences

This shows you the differences between two versions of the page.

docs:php [2010/12/12 22:21]
johnleach recommend event, not worker mpm
docs:php [2012/04/11 15:25] (current)
ben [Add the configuration to Apache]
Line 26: Line 26:
   DefaultInitEnv PHP_FCGI_CHILDREN 0   DefaultInitEnv PHP_FCGI_CHILDREN 0
   FCGIWrapper /usr/bin/php-cgi .php   FCGIWrapper /usr/bin/php-cgi .php
-  <Files *.php> 
-    Options +ExecCGI 
-  </Files> 
 </IfModule> </IfModule>
 </code> </code>
  
-To increase the maximum number of PHP processes (and thus increase the number of MySQL connections that will be consumed) change the line: ''DefaultMaxClassProcessCount 4''+Then ensure ''+ExecCGI'' is set on the document root for each virtual host that requires PHP. For example. 
 + 
 +<code apache> 
 +<Directory /path/to/document/root> 
 +  Options +ExecCGI 
 +  ... 
 +</Directory> 
 +</code> 
 + 
 +The number of PHP processes is restricted on a per-virtual host basis. To increase the maximum number of PHP processes (and thus increase the number of MySQL connections that will be consumed) change the line: ''DefaultMaxClassProcessCount 4''
  
 ===== Installing PHP modules ===== ===== Installing PHP modules =====
docs/php.txt · Last modified: 2012/04/11 15:25 by ben