I'm trying to install Composer and make it available globally on my VPS. The instructions I've read say to execute:
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Unfortunately I can't run sudo with my default account. After a bit of reading I foudn that you can create an admin account that has sudo permissions, but when I set that account up it can't see my domain. If I attempt to modify the domain so it runs under a different account it doesn't give me the option of the admin account but does allow me to specify a new account. If I type in the name of the admin account it says I can't use that name as it already exists.
Am I doing something stupid? I just can't find a way to run sudo under the default account that the domain belongs to, and I can't find a way to access the domain from the admin account.