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!
Issue with services after "hard reboot"
Re: Issue with services after "hard reboot"
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
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
- peopleinside
- Posts: 67
- Joined: 2013/11/13 10:41:22
Re: Issue with services after "hard reboot"
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?
Is really true that I cannot start service like PHP on CentOS power up?
How to do so?
Re: Issue with services after "hard reboot"
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
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
- peopleinside
- Posts: 67
- Joined: 2013/11/13 10:41:22
Re: Issue with services after "hard reboot"
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
For example for start / restart PHP just add in the above file the line:
I am just updating this topic because can be useful to someone.
Thanks for the help and suggestions.
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
Code: Select all
/etc/init.d/php-fpm71 restart
Thanks for the help and suggestions.