• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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