Bulk Editing User PHP-FPM YAML Files
I'm in the process of trying to optimally and securely configure my cP server on which all accounts run under PHP-FPM.
A couple of the accounts (Drupal) need PHP functions like ini_set and curl_exec etc which ideally I want disabled on all other accounts.
Seems the solution for this is to enable ini_set and curl_exec etc globally and then manually disable them on all but the accounts I wish to be able to still use them.
This would involve manually editing a LOT of YAML files - which is always a pain in the backside, especially if a mistake is accidentally made in the syntax- knocking out Apache for a time while it's resolved.
I've just happened upon this PHP script on GitHub which can make automatic changes to ALL accounts' yaml files (or a subset, see options):
github.com/aetherweb/bulkyamleditor
Thought I'd share as it might be useful to others.
Please sign in to leave a comment.
Comments
0 comments