Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 06, 2025, 07:02 AM

Title: Websites and ActiveSync services hosted in Plesk are loading slowly or fail to
Post by: Suhitha on Dec 06, 2025, 07:02 AM
Question: Websites and ActiveSync services hosted in Plesk are loading slowly or fail to load with a 50x error: mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper


Applicable to:



Symptoms


mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

500 Internal Server
502 Bad Gateway
503 Service Temporarily Unavailable
504 Gateway Time-out.

Cause

The Apache FcgidMaxProcesses limit (the total number of processes FCGID will start for all users) has been reached.


Resolution

1.Connect to the Plesk server via SSH.

2.Increase the value of FcgidMaxProcesses and FcgidMaxProcessesPerClass:

2.1. Open the fcgid.conf file in a text editor:


# vi /etc/httpd/conf.d/fcgid.conf


vi /etc/apache2/mods-enabled/fcgid.conf

2.2. Navigate to the directive FcgidMaxProcesses and increase its value. General recommendations: RAM 8GB - about 150, RAM 16GB - 300

2.3. Navigate to the directive FcgidMaxProcessesPerClass and increase its value to 10 or 15

2.4. Save the changes and close the file

3.Make sure no other files in the Apache configuration directory override the parameters in fcgid.conf using this command:


# grep -irE 'FcgidMaxProcesses|FcgidMaxProcessesPerClass' /etc/httpd/conf.d/


# grep -irE 'FcgidMaxProcesses|FcgidMaxProcessesPerClass' /etc/apache2/

If files other than fcgid.conf are found, increase the FcgidMaxProcesses and FcgidMaxProcessesPerClass limit in these files too.

4.Restart Apache to apply the changes:


# service httpd restart


# service apache2 restart