Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Installing Сomposer on cPanel Issue

Discussion in 'General Discussion' started by ssavchenko, Feb 28, 2018.

Tags:
  1. ssavchenko

    ssavchenko Member

    Joined:
    Oct 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Server running WHM/cPanel v68.0.29. As composer is now included globally with Сpanel, I'am login SSH as a cpanel user and try to use composer, but nothing happens:

    host@host [~]# composer --help

    host@host [~]# composer diagnose

    host@host [~]#

    on another server with the same version of the Cpanel and CloudLinux, it's all right. What could be the reason? The version of php set to 7.1 with PHP Selector. Directive

    allow_url_fopen On

    are chosen in CPanel (as reccomended in documentation How to Set Up (PHP) Composer - cPanel Knowledge Base - cPanel Documentation.

    Unfortunately for the first time I try to use a Composer, I do not understand what it needs.
     
  2. ssavchenko

    ssavchenko Member

    Joined:
    Oct 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Update. As root:
    composer - V

    Fatal error: Class Phar not found in / opt / cpanel / composer / bin / composer on line 23
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice