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. 2017-11-07, 20:04:01

Author Topic: Constant 504 Gateway Errors with php-fpm  (Read 1222 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Constant 504 Gateway Errors with php-fpm
« on: 2015-10-03, 19:42:53 »
Even with no load. The script is just trying to run but it hangs.

How to resolve this ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Constant 504 Gateway Errors with php-fpm
« Reply #1 on: 2015-10-03, 21:01:17 »
Inform here 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Constant 504 Gateway Errors with php-fpm
« Reply #2 on: 2015-10-03, 21:28:42 »
A. Kloxo-MR: 7.0.0.b-2015092401
   - Web: hiawatha-9.14.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: xxx.pl
C. Services:
   1. MySQL: MariaDB-server-10.0.21-1.el6.x86_64
   2. PHP:
      - Branch: php-cli-5.6.14-1.el6.remi.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.29-1.ius.el6
        * php56m-5.6.13-1.ius.el6
      - Used: --Use PHP Branch--
   3. Httpd: httpd-2.2.31-1.mr.el6.x86_64
      - PHP Type: [unknown]
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.5-1.el6.ngx.x86_64
   7. Cache: --uninstalled--
   8. Dns: pdns-3.3.3-101.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:         32166      16396      15770        135        214       7064
   -/+ buffers/cache:       9117      23048
   Swap:         2047        938       1109
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/md2         20G   11G  8.2G  57% /

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Constant 504 Gateway Errors with php-fpm
« Reply #3 on: 2015-10-04, 03:44:52 »
Try to update 'php-type' in 'webserver configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Constant 504 Gateway Errors with php-fpm
« Reply #4 on: 2015-10-05, 13:18:48 »
Try to update 'php-type' in 'webserver configure'.

I've changed:

pm.max_requests = 200
pm.process_idle_timeout = 5s

Also increased:

proxy_connect_timeout 600s
proxy_send_timeout 300s
proxy_read_timeout 300s

 


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

Page created in 0.039 seconds with 18 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM