I've been given a task to implement a backup solution in the event of our website goes down. It is a dedicated server running centos 6.
From what i've experience on our server, our server may go down because of PHP application crash or hardware failure.
I have couple of questions:
- In the first case, is it possible to get the server restart the PHP automatically, how can I do that? Because in my mind, if it is only the application that goes down, probably I can still make use of the server itself.
- In the second case, can I redirect a request to a secondary server? How can I do that? What do I need other than another server?
For now it is gonna be a simple server which shows the user a static landing page so later the system notify us via email that the primary server went down so that we can restart the server manually.
Is it possible to setup just a vps or even a shared server for the secondary server ? As I think there is only gonna be a static page.
Thanks. Any help would be much appreciated