Connection reset by peer: mod_fcgid: error reading data from FastCGI server

Symptoms: The following errors are found in the web server error logs:

Connection reset by peer: mod_fcgid: error reading data from FastCGI server

Premature end of script headers: index.php

Solutions:  This is one of those frustrating errors that can take a long time to fix and may be dependent on multiple problems.  The solution that worked in my case was adding:

ini_set(‘zend.enable_gc’, 0); <<Below the <?php tag in the index.php

Why does this work?  There are known conflicts between zend and APC, if both are installed you may receive the above error, adding the above code into your php file should resolve your issue.

Other possible solutions:  Modify your php.ini to increase max_execution_time, post_max_size, and max_input_time :: IMPORTANT – Make sure you maintain a limit, no limit could result in massive resource usage.


Plesk: Scheduled Task for script not running

Symptoms: A task is scheduled in Plesk under Scheduled Tasks, the task attempts to run a php script but fails.

Solution:
By Default Plesk 11 does not allow execution of scripts in a non-chrooted environment,

To Allow execution of Scripts, change the server policy from the command prompt:

# /usr/local/psa/bin/server_pref -u -crontab-secure-shell “/bin/sh”

To disallow:
# /usr/local/psa/bin/server_pref -u -crontab-secure-shell “”

Plesk: Unable update mailbox: mailmng failed: Empty error message from utility

Symptom: When attempting to add a new mail account you receive the following error message: Unable update mailbox: mailmng failed: Empty error message from utility

Solution: The error is caused by a security update released in Ubuntu for mysql 5.1.66, there is currently no Plesk fix for this error as of Nov. 13th, 2012. In order to resolve the error you must roll back 5.1.66 to 5.1.63.

Instructions can be found here for the temporary fix: Parallels Forum

Note: If Ubuntu 10.04 LTS is set to automatically install updates, every time it checks for updates it will patch 5.1.63 to 5.1.66 again.

Plesk: DNS Server installed but Bind9 won’t load

Symptom: Plesk 11 comes installed with Bind9 but the DNS Server will not start.

Solution: There is a known conflict with apparmor in Ubuntu 10.04 LTS

1. sudo /etc/init.d/apparmor stop

2. Add the following to the apparmor profile: /etc/apparmor.d/usr.sbin.named

# plesk runs bind in chroot, need perms
/var/named/run-root/** rw,

3. sudo /etc/init.d/bind9 start

4. sudo /etc/init.d/apparmor start

5. sudo /etc/init.d/psa stop

6. sudo /etc/init.d/psa start

Bind9 / DNS Service should now be enabled in the control panel.