RE: PHP version changer
03-01-2021, 05:04 AM
(This post was last modified: 03-01-2021, 05:36 AM by ccr1969.)
(03-01-2021, 01:41 AM)spoonman Wrote: the server is slower because of CGI and it is old server side technology.Try Tweaking your mod-fcgid-conf
you did change your mod-fcgid-conf ?
/etc/apache2/mods-available/fcgid.conf
play around with this it to you find a sweet spot
<IfModule mod_fcgid.c>
MaxRequestLen 1000000000
IPCCommTimeout 9999
IPCConnectTimeout 100
FcgidBusyTimeout 600
IPCConnectTimeout 600
FcgidZombieScanInterval 30
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 120
FcgidMaxProcessesPerClass 120
FcgidMinProcessesPerClass 60
FcgidConnectTimeout 600
FcgidIOTimeout 600
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
Code:
FcgidBusyTimeout 3600
FcgidProcessLifeTime 3600
FcgidOutputBufferSize 0
Code:
FcgidMaxRequestsPerProcess 10000
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 10000