The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    68
    Likes Received:
    0
    Trophy Points:
    6
    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:
    68
    Likes Received:
    0
    Trophy Points:
    6
    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:
    336
    Likes Received:
    25
    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
     
Loading...

Share This Page