• GoDaddy Community
  • VPS & Dedicated Servers
  • VPS & Dedicated Servers

    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 

    Composer update is not working - subdomain of main domain

    I am trying to deploy the copy of my website in subdomain of main domain. I have almost done with that, but when I am trying to do composer update in cmd i get error. I will attach screenshot. Can you help me with this? I cant find the php.ini file to change that. 


    1 REPLY 1

    Composer required directive allow_url_fopen is set to On since is downloading and sometimes evaluating dependencies directly from urls.


    From cpanel or WHM you must set allow_url_fopen = On or if you are running this only once , try the following:


    php -dallow_url_fopen=On composer.phar update


    Please notice you must download and place composer.phar in the same directory that your composer.json