← Back to context

Comment by relaxatorium

13 hours ago

In terms of taking sites/applications down, if you have a maintenance mode that serves only HTML does that seem sufficient at the moment, or is the mere presence of PHP on a server enough right now to warrant "entire server, off button"?

Depends on how it is set up.

Many modern hosts run php in fcgi mode, where your app is a process that listens on some http port. And where the webserver is "just" a proxy and ssl termination. Shutting down the process is enough.

But traditionally, php was a module loaded into apache. Where apache not only handled ssl, http etc, but also compiled and ran php for you. With that setup, adding an html file, will keep the php runtime and app online.

It was suggested to only allow GET/HEAD requests. Works if you don't have login forms.