- IMSCP: 1.3.16 (Build: 20170107)
- Distribution: Debian 8.6
- Proftpd
- PHP FCGID
- MariaDB 10.0
- Courier
- Roundcube
- Pydio
- Plugins:
PanelRedirect 1.1.5, PMA Captcha 1.1.1, RoundCubePlugins 1.2.6, SpamAssassin 1.1.1 , LetsEncrypt 3.0.0
For many years I just used the standard mpm_worker settings.
Now there are problems with timeouts and many ERR_CONNECTION_TIMED_OUT w/ https.
Intel Quad-Core
32 GB DDR3 RAM
2x 500 GB SSD RAID1
Domains 240
Subdomains 108
Domain aliases 102
Yesterday I have changed the worker settings and it has improved slightly ... are these settings recommended with the standard fcgid settings or should I use smaller values?
Recommendation?
Timeout 5
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
HostnameLookups Off
Code
- mpm_worker.conf
- <IfModule mpm_worker_module>
- StartServers 2
- MinSpareThreads 64
- MaxSpareThreads 256
- ThreadLimit 64
- ThreadsPerChild 25
- MaxRequestWorkers 300
- MaxConnectionsPerChild 0
- </IfModule>
- fcgid_imscp.conf
- <IfModule fcgid_module>
- AddHandler fcgid-script .php .php3 .php4 .php5 .php7 .pht .phtml
- FcgidConnectTimeout 20
- FcgidMaxRequestsPerProcess 900
- FcgidMaxRequestLen 1073741824
- FcgidPassHeader AUTHORIZATION
- FcgidFixPathinfo 1
- FcgidIOTimeout 600
- FcgidBusyTimeout 7200
- FcgidBusyScanInterval 240
- FcgidIdleScanInterval 120
- FcgidIdleTimeout 240
- FcgidProcessLifeTime 3600
- FcgidMaxProcesses 1000
- FcgidMaxProcessesPerClass 6
- FcgidMinProcessesPerClass 0
- </IfModule>
- default php-fcgi-starter
- umask 027
- export PHPRC=/var/www/fcgi/afrodisax.com/php5
- export PHP_FCGI_MAX_REQUESTS=1000
- export PHP_FCGI_CHILDREN=0
- export TMPDIR=/var/www/virtual/afrodisax.com/phptmp
- exec /usr/bin/php5-cgi "$@"