Resolve "website PHP version select should also apply for CLI"
Closes #6501, #6410, #6211 and #6633 (closed)
This PR deals with the topics mentioned in both issues, so basically cronjobs and shell users. Nontheless there are few things that are unclear to me and I need feedback/help to address them, in case they need to be adressed.
- Is it better to move the code to a plugin?
- What about chroot/jailkit environments? My tests were successfull for full cronjobs only, but since I don't use jailkit/chroot I'm unsure what needs to be done there.
- What about a second field for the directory that just contains the PHP cli binaries? This would be important if one rather wants to use the $PATH environment variable which is imho the superior choice over an alias to provide the PHP cli binary of the web.
P.S. This is a draft and not tidied up yet.
Edited by Michael