Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 12:51:21

Author Topic: FastCGI error  (Read 5400 times)

0 Members and 1 Guest are viewing this topic.

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
FastCGI error
« on: 2016-12-19, 10:50:02 »
Hello,
I have runed one php script that its process needs more than 120 seconds. but I get 500 Internal Server Error after that.

I want to increase it to more than 120 seconds.

Also below error log created after the error 500:   
   
Code: [Select]
[Mon Dec 19 09:40:23 2016] [error] [client xxx.xxx.xxx.xxx] (104)Connection reset by peer: FastCGI: comm with server "/home/admin/user/domain.tld.0fake" aborted: read failed
[Mon Dec 19 09:40:23 2016] [error] [client xxx.xxx.xxx.xxx] FastCGI: incomplete headers (0 bytes) received from server "/home/admin/user/domain.tld.0fake"

A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016112001
   - Web: hiawatha-10.4.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: server.domain.tld
C. Services:
   1. MySQL: MariaDB-server-10.0.28-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.28-1.ius.el6
          * php70m-7.0.12-1.w6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.43-2.el6.x86_64
     - Nginx: nginx-1.11.6-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: none
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: webalizer
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: FastCGI error
« Reply #1 on: 2016-12-19, 11:06:38 »
Update your Kloxo-MR 7.0 with 'yum clean all; yum update kloxomr7'.

And then go to 'admin > all domains > (select one) > web features > timeout'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: FastCGI error
« Reply #2 on: 2016-12-21, 10:58:44 »
Update your Kloxo-MR 7.0 with 'yum clean all; yum update kloxomr7'.

And then go to 'admin > all domains > (select one) > web features > timeout'.

I have updated kloxo to latest version and set web features timeout to 300 but my php script still stops after 120 seconds.

   - Kloxo-MR: 7.0.0.b-2016121602
   - Web: hiawatha-10.4.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: server.domain.tld
C. Services:
   1. MySQL: MariaDB-server-10.0.28-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.29-1.ius.el6
          * php70m-7.0.14-1.ius.el6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.43-2.el6.x86_64
     - Nginx: nginx-1.11.7-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: none
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: webalizer
« Last Edit: 2016-12-21, 11:00:42 by WISTFUL »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: FastCGI error
« Reply #3 on: 2016-12-21, 11:50:19 »
Maybe something missing in php-fpm and or php config. I will review about it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: FastCGI error
« Reply #4 on: 2016-12-25, 06:34:23 »
Maybe something missing in php-fpm and or php config. I will review about it.

Thanks for new update...
Now after 180 seconds I get below error:

Code: [Select]
504 Gateway Time-out
nginx/1.3.7

A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016122302
   - Web: hiawatha-10.4.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: server.domain.tld
C. Services:
   1. MySQL: MariaDB-server-10.0.28-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.29-1.ius.el6
          * php70m-7.0.14-1.ius.el6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.43-2.el6.x86_64
     - Nginx: nginx-1.11.7-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: none
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: webalizer
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: FastCGI error
« Reply #5 on: 2016-12-25, 09:31:35 »
Check timeout in 'advanced php configure'. You can increasing it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: FastCGI error
« Reply #6 on: 2016-12-26, 14:07:43 »
Check timeout in 'advanced php configure'. You can increasing it.

The value of 'Max Execution Time' and 'Max Input Time' is 300 but my process stops after 180 seconds.
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: FastCGI error
« Reply #7 on: 2016-12-26, 14:39:59 »
Make sure 'Max Execution Time' for target client/user.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: FastCGI error
« Reply #8 on: 2016-12-26, 15:17:31 »
Also copy '/usr/local/lxlabs/kloxo/init/php.ini.base' to 'custom.php.ini.base' and then change value of '__for_phpm__max_execution_time' and '__for_phpm__max_input_time'. After that, run 'sh /script/phpm-updater; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: FastCGI error
« Reply #9 on: 2016-12-31, 10:43:47 »
Thanks, Issue solved with above change.
.

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.087 seconds with 19 queries.

web stats analysis