Author Topic: ERROR 502 Bad Gateway nginx/1.12.2  (Read 1143 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
ERROR 502 Bad Gateway nginx/1.12.2
« on: March 23, 2018, 03:49:52 AM »
First error:
Code: [Select]
[root@ ~]# service httpd start
Starting httpd:                                            [FAILED]

Code: [Select]
[root@ ~]# cat /var/log/httpd/error_log
cat: /var/log/httpd/error_log: No such file or directory

Code: [Select]
[root@ ~]#fuser 80/tcp
80/tcp:               4328  4330

Code: [Select]
[root@ ~]#service httpd stop
Stopping httpd:                                            [FAILED]

Code: [Select]
[root@ ~]#fuser 80/tcp
80/tcp:               4328  4330

Code: [Select]
[root@ ~]# fuser 443/tcp
443/tcp:              4328  4330

Code: [Select]
[root@ ~]# ps aux | grep 1974 | grep -v grep
[root@ ~]#

Code: [Select]
[root@ ~]# killall apache
apache: no process killed

Code: [Select]
[root@ ~]#locate httpd.conf
/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/tests/testdata/centos7_apache/apache/httpd/conf/httpd.conf
/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/tests/testdata/gentoo_apache/apache/apache2/httpd.conf
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf/original/httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-02-23_20-24-05_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-02-23_20-33-58_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-02-23_20-38-21_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-02-23_20-39-03_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-02-24_13-55-16_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-02-24_14-13-46_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-03-19_01-17-14_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-03-19_01-18-07_httpd.conf
/usr/local/cwp/.conf/backups/file_editor_backups/2018-03-19_01-19-28_httpd.conf
/usr/local/cwp/.conf/backups/usr/local/apache/conf/httpd.conf
/usr/local/src/modsecurity-2.9.1/tests/regression/server_root/conf/httpd.conf
/usr/local/src/modsecurity-2.9.1/tests/regression/server_root/conf/httpd.conf.in
/usr/src/lsws/lsws-5.2.4/add-ons/frontpage/conf/httpd.conf

Code: [Select]
Apache Include Configs
domain-redirects.conf
empty.conf
h264_flvx.conf
hostname-ssl.conf
hostname.conf
limits.conf
rpaf.conf
server-status.conf
ssl.conf
suphp.conf
system-redirects.conf
vhosts-ssl.conf
vhosts-ssl.conf.bkp
vhosts.conf
vhosts.conf.bkp
webmail.conf

Code: [Select]
[root@ ~]# killall apache
+apache: no process killed

Code: [Select]
[root@ ~]# chkconfig --list httpd
httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off


Code: [Select]
][root@ ~]# chkconfig httpd off
[root@ ~]#


Offline
*
Re: ERROR 502 Bad Gateway nginx/1.12.2
« Reply #1 on: March 23, 2018, 09:36:58 AM »
in some cases you are using apache and in some httpd, you should use httpd only...also you have info about the log paths on the wiki

killall -9 httpd
service httpd stop
service nginx stop

you can also try to rebuild webserver from cwp to get the correct server configuration rebuilt.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.