Need Help!! I don't know why all websites are down ...

vavkey

Verified User
Joined
Dec 15, 2019
Messages
12
I don't know why all websites are down. I tried restart , yum update,... but on both the same problem.

# service apache restart
Redirecting to /bin/systemctl restart apache.service
Failed to restart apache.service: Unit not found.

also, I am not super pro, mostly going with documentation and tutorials try to copy commands on ssh but still nothing.
----------------------------------------------
This site can’t be reached
www.domain.com refused to connect.

Try:
ERR_CONNECTION_REFUSED
 
Hello,

Have you performed any actions that would cause a service to go down?

View running services at yourdomain.com:2222/admin/services

If you have switched PHP versions you will need to do:

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

To restart apache:

Code:
service httpd restart
 
Hello,

Have you performed any actions that would cause a service to go down?

View running services at yourdomain.com:2222/admin/services

If you have switched PHP versions you will need to do:

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

To restart apache:

Code:
service httpd restart

Thanks @SmallWeb, but I try :
# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


and when I try:
#journalctl -xe

systemd[1]: Failed to start ConfigServer Firewall & Security - lfd.
-- Subject: Unit lfd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lfd.service has failed.
--
-- The result is failed.
Dec 16 13:25:01 systemd[1]: Unit lfd.service entered failed state.
Dec 16 13:25:01 systemd[1]: lfd.service failed.
Dec 16 13:25:02 sshd[16581]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=222.186.175.220 user=root
Dec 16 13:25:02 sshd[16581]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Dec 16 13:25:03 sshd[16581]: Failed password for root from 222.186.175.220 port 56562 ssh2
Dec 16 13:25:04 sshd[16581]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Dec 16 13:25:06 systemd[1]: Starting ConfigServer Firewall & Security - lfd...
-- Subject: Unit lfd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lfd.service has begun starting up.
Dec 16 13:25:07 lfd[16624]: Error: You have an unresolved error when starting csf. You need to restart csf successfully before starting lfd (see /etc/csf/csf.error)
Dec 16 13:25:07 systemd[1]: lfd.service: control process exited, code=exited status=1
Dec 16 13:25:07 systemd[1]: Failed to start ConfigServer Firewall & Security - lfd.
-- Subject: Unit lfd.service has failed
-- Defined-By: systems
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lfd.service has failed.
--
-- The result is failed.
Dec 16 13:25:07 systemd[1]: Unit lfd.service entered failed state.
Dec 16 13:25:07 systemd[1]: lfd.service failed.
Dec 16 13:25:07 sshd[16581]: Failed password for root from 222.186.175.220 port 56562 ssh2
Dec 16 13:25:08 sshd[16581]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Dec 16 13:25:10 sshd[16581]: Failed password for root from 222.186.175.220 port 56562 ssh2
Dec 16 13:25:11 sshd[16581]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Dec 16 13:25:12 sshd[16637]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.0.192 user=root
Dec 16 13:25:12 sshd[16637]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"


please help.....
 
I am seeing: Dec 16 13:25:07 lfd[16624]: Error: You have an unresolved error when starting csf. You need to restart csf successfully before starting lfd (see /etc/csf/csf.error)

You can attempt to uninstall CSF temporarily to see if the issue resolves:
Code:
 cd /etc/csf
 sh uninstall.sh

What does systemctl status httpd.service reveal?
 
Hello @SmallWeb, I folow to uninstall csf, and then try

# systemctl status httpd.service

httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2019-12-16 13:59:28 +07; 6s ago
Process: 11145 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Main PID: 11157 (httpd)
Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec"
CGroup: /system.slice/httpd.service
├─11157 /usr/sbin/httpd -DFOREGROUND
├─11159 /usr/sbin/httpd -DFOREGROUND
└─11160 /usr/sbin/httpd -DFOREGROUND
Dec 16 13:59:28 systemd[1]: Starting The Apache HTTP Server...
Dec 16 13:59:28 systemd[1]: Started The Apache HTTP Server.



BUT WEB SERVER STILL CAN'T CONNECT .... HIC HIC

This site can’t be reached
domain refused to connect.
Try:
  • Checking the connection
  • Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
 
Did

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

do anything?

If DirectAdmin is available, check for a broken .htaccess. The log posted indicates apache is running.
 
@SmallWeb Yes, I did :

# ./build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using xxx.xxx.xxx.xxx for your server IP
Debug mode. Level 10
Restarting apache.
-------------------------
Then I check:
system.com:2222 -- Still get the same error below
website.com --- still the same error below

This site can’t be reached
domain refused to connect.
Try:
  • Checking the connection
  • Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
 
also from other computer other place / isp / ip adress.

Ping domain ?
ping ip?

ON IP in browser?

do your host has some firewall rules , can youself configure this.

VPN ?
Proxy?

VERSIONS software?
Version OS?

LOG FILES as:
Log files hold the key to the universe :)

/var/log/directadmin/error.log

Status other services as directadmin itself?

i don't know about and howtoo CSF firewall deinstall and yes or no you have to do something with iptables or something else so search for those on the web to

CHECK also dns with some dns tools as mxtoolbox

If you are very sure problem and cause is on the box itself you can if license try a ticket at DA support.

IF IP changed?
 
Last edited:
also from other computer other place / isp / ip adress.

Ping domain ?
ping ip?

ON IP in browser?

do your host has some firewall rules , can youself configure this.

VPN ?
Proxy?

VERSIONS software?
Version OS?

LOG FILES as:


Status other services as directadmin itself?

i don't know about and howtoo CSF firewall deinstall and yes or no you have to do something with iptables or something else so search for those on the web to

CHECK also dns with some dns tools as mxtoolbox

If you are very sure problem and cause is on the box itself you can if license try a ticket at DA support.

IF IP changed?
Hi ikkeben ,

My server CentOS 7 + DA
Ping domain and ip ok , and no change IP.
I had uninstall CSF (thanks @SmallWeb) and can start httpd , but still the same Erorr

Yesterday my server is working probably , and today I don't know why all my website can't access , DA admin can't access

My /var/log/directadmin/error.log is empty !!

Hic.....
 
Hi ikkeben ,

My server CentOS 7 + DA
Ping domain and ip ok , and no change IP.
I had uninstall CSF (thanks @SmallWeb) and can start httpd , but still the same Erorr

Yesterday my server is working probably , and today I don't know why all my website can't access , DA admin can't access

My /var/log/directadmin/error.log is empty !!

Hic.....

See my added parts also to check if it is the box itself a lot more log files are available for example.

Other place other computer with other internet someone else then also not working?
 
Yeah,
after following all your steep: uninstall csf, custombuild, rebuild,.....
today I reinstall csf ....and .....boom it working !!!!

Thank to you ....@ SmallWeb ,@ VMH-Khan , @ ikkeben
and I still don't know why but now server working again!
 
Something was probably wrong with your CSF conf, did you customize it at all?
 
Back
Top