apache2/DOC
2017-10-14 03:25:22 +02:00
..
.htacces.FORWARD_FRAME Initial Import 2017-02-19 12:33:53 +01:00
apache_benchmark.test Initial Import 2017-02-19 12:33:53 +01:00
config_ciphers_apache2.2.txt Initial Import 2017-02-19 12:33:53 +01:00
config_pfs_apache2.4.txt Initial Import 2017-02-19 12:33:53 +01:00
index.html.FORWARD_FRAME Initial Import 2017-02-19 12:33:53 +01:00
README.apache_mpm_event Initial Import 2017-02-19 12:33:53 +01:00
README.Exclude_Files_and_Directories_From_Apache_Auth Initial Import 2017-02-19 12:33:53 +01:00
README.fcgi Initial Import 2017-02-19 12:33:53 +01:00
README.HTTP_security_headers Add Readme's for HTTP security headers. Add list of HTTP return codes. 2017-10-14 03:25:22 +02:00
README.HTTP_status_codes Add Readme's for HTTP security headers. Add list of HTTP return codes. 2017-10-14 03:25:22 +02:00
README.ldap Initial Import 2017-02-19 12:33:53 +01:00
README.modfcgid Initial Import 2017-02-19 12:33:53 +01:00

## - Configure mod_fcgid
## -
## - see also: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examples
## -

httpd.conf
=========

LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>

   # in Abstimmung mit PHP variablen
   #    post_max_size = 128M
   #    (upload_max_filesize = 32)
   #
   # 134217728 = 128*1024*1024 =128M
   #
   FcgidMaxRequestLen 134217728

   # By default, PHP FastCGI processes exit after handling 500 requests, 
   # and they may exit after this module has already connected to the 
   # application and sent the next request. When that occurs, an error 
   # will be logged and 500 Internal Server Error will be returned to 
   # the client. This PHP behavior can be disabled by setting 
   # PHP_FCGI_MAX_REQUESTS to 0, but that can be a problem if the PHP 
   # application leaks resources. Alternatively, PHP_FCGI_MAX_REQUESTS 
   # can be set to a much higher value than the default to reduce the 
   # frequency of this problem. FcgidMaxRequestsPerProcess can be set to 
   # a value less than or equal to PHP_FCGI_MAX_REQUESTS to resolve the 
   # roblem.
   FcgidMaxRequestsPerProcess 500

</IfModule>


vhost config
============

<VirtualHost <ip-address>:<port>>

   ...

   DocumentRoot "/var/www/adm.warenform.de/htdocs/"
   <Directory /var/www/adm.warenform.de/htdocs/>
      FCGIWrapper /var/www/adm.warenform.de/conf/fcgid .php
      <FilesMatch \.php$>
         SetHandler fcgid-script
      </FilesMatch>
      AllowOverride All
      Options +ExecCGI -Indexes
      Require all granted
   </Directory>

   ...

<//VirtualHost>


/var/www/adm.warenform.de/conf/fcgid
====================================



#!/bin/sh
export PHPRC="/var/www/adm.warenform.de/conf/"
export TMPDIR="/var/www/adm.warenform.de/tmp"

# PHP child process management (PHP_FCGI_CHILDREN) should 
# always be disabled with mod_fcgid, which will only route one 
# request at a time to application processes it has spawned; 
# thus, any child processes created by PHP will not be used 
# effectively. (Additionally, the PHP child processes may not 
# be terminated properly.) By default, and with the environment 
# variable setting PHP_FCGI_CHILDREN=0, PHP child process 
# management is disabled.
PHP_FCGI_CHILDREN=0
export PHP_FCGI_CHILDREN

exec /usr/local/php-5.3.28/bin/php-cgi