• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Where to set PHP_FCGI_MAX_REQUESTS?

Thomas Becker

Basic Pleskian
Hello,
please give me an idea where to set PHP_FCGI_MAX_REQUESTS using fcgi on Plesk 10 and CentOS 6 with PHP 5.3.3.
Which config file is a good choice for this variable?

Thanks.
 
Look at following config file:

# grep PHP_FCGI_MAX_REQUESTS /etc/sw-cp-server/applications.d/plesk.socket.sh
"PHP_FCGI_MAX_REQUESTS" => "10"
 
Thanks, Igor.

But this does set the variable for the Plesk Panel, right?

I want to set it for all virtual hosts on the system.
Where to set it?


When I add the line
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 5000
to /etc/httpd/conf.d/fcgid.conf and then doing a php info, after restarting apache, the variable PHP_FCGI_MAX_REQUESTS is not listed under "Environment". So I'm not sure if that is the right way to set it for the vhosts.
 
Last edited:
Back
Top