HostOnNet Blog

Installing composer on Cpanel Server

Looking for Linux Server Admin or WordPress Expert? We can help.

composer

To install composer on Cpanel server, run

cd /usr/local/bin/
curl -s https://getcomposer.org/installer | php
mv composer.phar composer
chmod +x composer

If you get error related to phar, you need to run EasyApache and enable phar, this can be done through WHM.

Posted in Cpanel Server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.