• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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