Comment 3 for bug 1023591

Revision history for this message
Jens (jens-launchpad-net) wrote :

I'm running PHP as a FCGI (FastCGI) module to isolate my user environments from each other properly.

No specific script causes this behaviour, I have multiple "handwritten" PHP scripts as well as Typo3 and Mambo / Joomla / whatever processes running and they all collect open file descriptors roughly at the same speed.

Here is an example virtualhost configuration:

<VirtualHost xx.xxx.xxx.xx:80>
  ServerName foobar.name
  ServerAlias *.foobar.name
  ServerAdmin <email address hidden>
  DocumentRoot "/xxxxx/webs/jens/name.foobar/"
  FcgidIdleTimeout 30
  SuexecUserGroup "jens" "jens"
  <Directory "/xxxxx/webs/jens/name.foobar/">
    <FilesMatch "\.(php)$">
      SetHandler fcgid-script
      FCGIWrapper /xxxxx/jens/foobar.name/php-fcgi-starter .php
      Options +ExecCGI
    </FilesMatch>
    Order allow,deny
    allow from all
  </Directory>
  Alias /awstats "/xxxxx/webs/jens/awstats/foobar.name"
  Alias /awstats-icon "/usr/share/awstats/icon/"
  ErrorLog "/xxxxx/logs/jens-foobar.name-error.log"
  CustomLog "/xxxxx/logs/jens-foobar.name-access.log" combined
</VirtualHost>

Here is the referenced (autogenerated) "php-fcgi-starter" script:

umask 022
PHPRC='/xxxxx/jens/foobar.name/'
export PHPRC
PHP_FCGI_CHILDREN=0
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=250
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi -c '/xxxxx/jens/foobar.name/'

I will read up on FPM, thank you for the info. But I still regard this as a bug ;)

Cheers
Jens