To use Composer, you must enable several PHP modules in EasyApache.
Iconv & Mbstring to install.
2-Edit the INI settings of a PHP version on the dropdown menu. Add the following lines at the end of the
allow_url_fopen = On detect_unicode = Off
3- Now that we have our dependencies set correctly, ssh into your Cpanel Server and download Composer installer:
wget 'https://getcomposer.org/installer -O composer-installer.php
Run the installer script to deploy Composer globally:
php ./composer-installer.php --install-dir=/usr/local/bin --filename=composer
4- To check for the installed version of composer, type the command:
# composer -V