I am trying to install composer to my cPanel but I can not getting error.
I have used this command to install it.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
and
php -r "readfile('https://getcomposer.org/installer');" | php -c php.ini
But both command is not working for me.
Getting this error
Error in argument 1, char 2: Option not found r
2
Answers
You can try:
got it from https://docs.cpanel.net/knowledge-base/web-services/how-to-set-up-php-composer/
or
got from: https://computingforgeeks.com/how-to-install-php-composer-on-cpanel/
Maybe you’re disallowed using -r option which evaluates php code. Try to use wget instead.
Make it executable.
Move to bin for global usage
Of course I don’t know if this is possible in your cpanel installation.
References: 1