I've been using PHP Codesniffer with some additional rulesets installed via Composer on several accounts to test PHP code before I upgrade the PHP version. Currently, I've got PHP Codesniffer installed on each account where I use it in the users' /home folder and added the path to each users' .bashrc so I can run commands without including the entire path; however, as I use PHP Codesniffer on more and more accounts, I've decided it would be easier to install it in one place that would allow it to be used from any user's account, but require that it be installed in only one place.
Into which folder can I install PHP Codesniffer--or any Composer package--to make the associated command(s) executable from any users' account when they're logged in via SSH?
If this is a bad idea for some reason, I'd like to know that, too.
My server is using Apache, jailshell is enabled, and I'm not using Cloudlinux. Composer is already installed and running fine globally.
Into which folder can I install PHP Codesniffer--or any Composer package--to make the associated command(s) executable from any users' account when they're logged in via SSH?
If this is a bad idea for some reason, I'd like to know that, too.
My server is using Apache, jailshell is enabled, and I'm not using Cloudlinux. Composer is already installed and running fine globally.
Last edited by a moderator: