Cannot access WHM and SSH on Centos 7

SaeidRad

Registered
Mar 9, 2021
1
0
1
Istanbul, Turkey
cPanel Access Level
Root Administrator
I wanted to install gitlab on my server and after performing the commands they have provided in my SSH, now none of the sites on my server is responding.

Here is the commands I have used:

Code:
sudo yum install -y curl policycoreutils-python openssh-server perl

sudo systemctl enable sshd

sudo systemctl start sshd

sudo firewall-cmd --permanent --add-service=http

sudo firewall-cmd --permanent --add-service=https

sudo systemctl reload firewalld
So now I cannot access to WHM or SSH anymore and the only thing I can connect with it to my server is iDRAC. So Im wondering how to fix this matter.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
5,498
700
313
cPanel Access Level
Root Administrator
Hey there! Those commands could definitely cause damage to any system, especially one with cPanel installed. Specifically, you would not have needed to install SSH, or adjust the firewall with those commands, as those would have already been present.

If your hosting provider has a shell you can access through a browser that may be your best bet to get things working properly. If you can get access there, I would start by disabling any active firewalls that may be running to see if that gets normal access working.
 
  • Like
Reactions: SaeidRad