Skip to main content

Composer and allow_url_fopen

Comments

4 comments

  • kodeslogic
    Have you enabled allow_url_fopen through WHM panel?
    • Go to WHM panel
    • Search MultiPHP INI Editor
    • Select Editor Mode then select the php version in Edit the INI settings of a PHP version
    • Search allow_url_fopen, make it as On as follows below:
    Allow_url_fopen: On Then save changes, after that restart the Apache server to take changes effect. Note: "url_fopen" refers to a PHP directive allowing files to be included from external sources. It will create a security risk for all domains hosted on the servers by enabling the allow_url_fopen server-wide. Alternatively, You could try prefixing your command with php -d allow_url_fopen=on composer [your command here]
    0
  • tomdchi
    If anyone else has this problem, composer uses what is set for the system PHP not for an individual account.
    0
  • andrew.n
    Glad you could figure it out!
    0
  • cPRex Jurassic Moderator
    Nice work!
    0

Please sign in to leave a comment.