Issue with services after "hard reboot"

General support questions
Post Reply
User avatar
peopleinside
Posts: 67
Joined: 2013/11/13 10:41:22

Issue with services after "hard reboot"

Post by peopleinside » 2018/03/27 06:12:56

Hi,
I am using CentOS 7 for my VPS.

On this CentOS I run a web panel that help me to have FTP, Mysql, PHP, Apache services.
IF I perform an hard reboot because something is wrong and I cannot access SSH or there are particular issues seems when the server turn on I have websites error because services like PHP fail to start.

Some day ago my hosting provider has an issue on the VPS, power went off for about 40 minutes. When the host has resolved the issue and server start to be again alimented by the power, again all my website was showing error 50 X maybe this is showed by Nginx.

The Control panel has told me they can't made services like PHP start after an hard reboot or when the server start and tell me this is a Linux issue. Is really true? There is not a way to start automatically important services that VPS need to run again my website after a power interruption or an emergency hard reboot?

I am asking is really a CentOs issue or there is a way to start important service also after an hard reboot or a power off and on of the server?
Thank you!

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issue with services after "hard reboot"

Post by TrevorH » 2018/03/27 06:17:47

I suspect you've discovered one of the many reasons why we do not support or recommend using control panels of any sort.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
peopleinside
Posts: 67
Joined: 2013/11/13 10:41:22

Re: Issue with services after "hard reboot"

Post by peopleinside » 2018/03/27 06:20:56

Please forget I am using a control panel.
Is really true that I cannot start service like PHP on CentOS power up?
How to do so?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issue with services after "hard reboot"

Post by TrevorH » 2018/03/27 06:30:40

No, it's not true.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
peopleinside
Posts: 67
Joined: 2013/11/13 10:41:22

Re: Issue with services after "hard reboot"

Post by peopleinside » 2018/09/25 11:38:57

TrevorH thank you for your help, issue has been fixed from the control panel team.
If some service have issue on start also on hard reboot can be usefull start that service or restart it in

Code: Select all

vi /etc/rc.d/rc.local
For example for start / restart PHP just add in the above file the line:

Code: Select all

/etc/init.d/php-fpm71 restart
I am just updating this topic because can be useful to someone.
Thanks for the help and suggestions.

Post Reply