Wednesday, December 12, 2018

After Restart Server Instances CentOS 7 .. All websites Down and Can't login to Server .. How to solve it? This is solution

After Restart Server Instances CentOS 7 .. All websites Down and Can't login to Server .. How to solve it? This is solution

I use vultr server.. but today  that server down after I restart server in CentOS 7 .

Frustration caused server down and all website down, can't login to server. Don't worry, this is solution..

1. contact to vultr using ticket to make you can see GRUB menu.
2. Find the kernel line (it starts with "linux16"), change ro to rw init=/sysroot/bin/sh
3. Press CTRL+X or F10 to boot single user mode.
4. Access the system with the command: chroot /sysroot
5. Edit /etc/selinux/config and change "enforcing" to "disabled" .. use method to edit Editing files with vi  

vi /etc/selinux/config
change "enforcing" to "disabled"
press  Escape
press :wq

6. reboot -f

Your server will reboot.. wait until display need login.. congrulation.. your server up now