Ran it, here is the result
error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/root/.bitcoin/bitcoin.conf)
Here is how to create RPC credentials:
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
git checkout v23.0
cd share/rpcauth/
python3 rpcauth.py the_username_of_the_user_you_want cleartext_password_unique_long
It will output a hash that you want to store (e.g. in a text file) for the very last step. You can trash that afterwards.
Then delete shell history:
Finally add this line to the Bitcoin configuration file (in your case at
/root/.bitcoin/bitcoin.conf)
rpcauth=the_username_of_the_user_you_want:hash_that_you_had_to_store_for_this_step
After these changes, reboot Apollo and cross fingers
You should be able to access
bitcoin-cli from any user now, as long as you specify
-rpcuser=<user> -rpcpassword=<password>.
Lightning will need to know those parameters as well, though.
Add to lightningd.conf and reboot again:
--bitcoin-rpcuser <user>
--bitcoin-rpcpassword <password>