• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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

Pedro1

Basic Pleskian
Hello:

I have this error.

Code:
[Mon Mar 23 20:53:14 2015] [warn] [client xxx.xxx.xxx.xxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server 
[Mon Mar 23 20:53:14 2015] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php

My VPS

OSDebian 7.8
Plesk version12.0.18 Update #38

-----

Code:
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/lib/apache2/fcgid/sock
FcgidProcessTableFile /var/lib/apache2/fcgid/shm
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>

Code:
root@server:~# php-cgi -v
PHP 5.4.36-0+deb7u3 (cgi-fcgi) (built: Jan  9 2015 08:09:23)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd.

Code:
root@server:~# free -m

            total       used       free     shared    buffers     cached

Mem:         14067       1671      12395          0        132        288

-/+ buffers/cache:       1251      12816

Swap:            0          0          0

Code:
root@server:~# ls -la /etc/passwd
-rw-r--r-- 1 root root 3317 Mar 23 13:38 /etc/passwd

Thanks in advance
 
Make sure that you have correct permissions:

# ls -la /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
-rwxr-xr-x 1 root root 18688 Jul 24 2013 /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

# ls -ld /usr/sbin/suexec
-r-s--x--- 1 root apache 18580 Mar 24 05:21 /usr/sbin/suexec

Ensure that the '/var/www' is not a symlink to any other directory.
 
Hi:

Thanks for your answer.

About permissions:

Code:
root@server:/var/www/vhosts# cd
root@server:~# ls -la /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
-rwxr-xr-x 1 root root 19312 May 26  2014 /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

root@server:~# ls -ld /usr/sbin/suexec
ls: cannot access /usr/sbin/suexec: No such file or directory

About /var/www

Code:
/var/www# ls
cgi-bin  index.html  vhosts  webalizer

and the index.html code is

Code:
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>

In /vhost there are all the domains folder

Best regards
Pedro
 
Back
Top