Join the community today
Register Now

502 Bad Gateway

Discussion in 'Introductions' started by Roman Kh, Mar 29, 2017.

  1. Roman Kh

    Roman Kh New Member

    11
    2
    3
    Mar 29, 2017
    Ratings:
    +2
    Local Time:
    5:39 PM
    1.11.12
    10.1.22
    This morning I'm getting 502 Bad Gateway on my server.
    My Setup:

    CentOS Version: CentOS 7 64bit ?
    Centmin Mod Version Installed: 123.09beta01
    Nginx Version Installed: i.e. 1.11.12
    PHP Version Installed: 7.0.15
    MariaDB MySQL Version Installed: 10.1.22
    When was last time updated Centmin Mod code base ? : today

    NGINX log:
    Code:
    [error] 1052#1052: *5 connect() failed (111: Connection refused) while connecting to upstream, client: ***.87.161.***, server: *****.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.*****.com"
    Tried to restart PHP-fmp:
    Code:
    # bash -x /etc/init.d/php-fpm restart
    + '[' -f /proc/user_beancounters ']'
    + '[' '!' -d /var/run/php-fpm ']'
    + prefix=/usr/local
    + exec_prefix=/usr/local
    + php_fpm_BIN=/usr/local/sbin/php-fpm
    + php_fpm_CONF=/usr/local/etc/php-fpm.conf
    + php_fpm_PID=/var/run/php-fpm/php-fpm.pid
    + php_opts='--fpm-config /usr/local/etc/php-fpm.conf'
    ++ cat /var/run/php-fpm/php-fpm.pid
    + kill -0
    + running=1
    + case "$1" in
    + /etc/init.d/php-fpm stop
    Gracefully shutting down php-fpm kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    ................................... failed. Use force-exit
    + /etc/init.d/php-fpm start
    Starting php-fpm /etc/init.d/php-fpm: line 76:  3526 Illegal instruction     $php_fpm_BIN $php_opts
     failed
    I'm not running multiple pools.
    Any suggestions?
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,573
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,755
    Local Time:
    12:39 AM
    Nginx 1.13.x
    MariaDB 5.5
    welcome @Roman Kh to Centmin Mod Community. There's 5 steps to learning more about Centmin Mod ;)

    For your specific issue best to post in the forums at https://community.centminmod.com/forums/nginx-php-fpm-mariadb-mysql.21/.

    Glad to see you trying the 123.09beta01 build as it will be next stable release and well has alot of improvements if you check 2nd post change log at Beta Branch - Centmin Mod .09 beta branch Testing. And you can share your initial install times here.

    Threads you might want to participate in ;)

    Threads & Info To Bookmark



    Threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod would include:

    Centmin Mod Insights Forum



    The Centmin Mod Insights forums digs deeper into the inner workings of Centmin Mod so some useful threads in this forum include:

    Premium Membership


    Centmin Mod Donations



    You now can show your love and support for Centmin Mod via
     
  3. Roman Kh

    Roman Kh New Member

    11
    2
    3
    Mar 29, 2017
    Ratings:
    +2
    Local Time:
    5:39 PM
    1.11.12
    10.1.22
  4. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,573
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,755
    Local Time:
    12:39 AM
    Nginx 1.13.x
    MariaDB 5.5