We have a server (running PHP-FPM 7.4 on Apache) that hosts various scripts, frameworks and applications like DokuWiki. It's grown to a pretty complex beast. We would like to apply an open_basedir
restriction. Just setting a best guess open_basedir
is bound to cause problems. Is there a way to find out the minimal set of the paths that are actually required?
If an open_basedir
restriction could be made non-fatal, for instance, so that it logs warnings instead of errors, we could monitor these. But I found no way to make open_basedir non-fatal.