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!

Help with composer: proc_open, allow_url_fopen

Discussion in 'General Discussion' started by Skin, Oct 7, 2016.

Tags:
  1. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    158
    Location:
    Italy
    Hello,
    I've been using composer without problems for a lot of months, but after the upgrade to cPanel 58 composer stopped working.

    I see in the docs that now composer is added in cPanel & WHM, so may be the old composer configuration is in conflict with the new one.

    If I run composer diagnose I have the sequent errors:

    I don't like very much the idea of enabling allow_url_fopen, is there a custom php.ini for composer?

    I know i can run
    Code:
    alias composer="php -d allow_url_fopen=1 -d detect_unicode=0 $(which composer)"
    , but it is not a permanent solution.

    Same thing for proc_open, I'd like to enable this function only for composer.

    Thanks.
     
  2. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    158
    Location:
    Italy
    I've just realizad that the suggestion given by composer diagnose ma be a good solution:
    Is this php.ini used only in command line?

    I've edited the suggested php.ini, but the strange thing is that here proc_open is not disabled, the line disable_function is completely clean, so how can enable proc_open?
     
  3. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    42
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    I think you are using Easyapache 4. You can try to disable/enable allow_url_fopen through WHM.
    Login th WHM >> Software >> MultiPHP INI Editor
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,885
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
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