Answers.Body: <p>Type <code>php --ini</code> in your server environment, it should tells you where the <code>.ini</code> files are getting loaded.</p>
  <p>Then set</p>
  <pre><code>allow_url_fopen = 1
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T14:44:52.383Z
Answers.Text: ^ - I'll add this is noted in the docs here: https://docs.craftcms.com/v3/requirements.html#optional-php-methods-and-configurations
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T05:03:55.783Z
Answers.LastActivityDate: 2020-07-31T05:03:55.783Z
Answers.UserDisplayName: Jinzhe
Body: <p>I'm pretty new to CraftCMS and am trying to install updates for a client. I am getting this error and I don't really know what it means. Any help of brief explanation for this would be appreciated.</p>
  <blockquote>
  <p>Error: The &quot;https://asset-packagist.org/packages.json&quot; file could not
  be downloaded: allow_url_fopen must be enabled in php.ini (https://
  wrapper is disabled in the server configuration by allow_url_fopen=0
  failed to open stream: no suitable wrapper could be found) Output:
  Loading composer repositories with package information.</p>
  </blockquote>
  
Tags: <php><error><json>
Title: Error when trying to update Craft
ThreadText: # Error when trying to update Craft
  
  (Asked by: username_0 on 2020-07-30)
  
  I'm pretty new to CraftCMS and am trying to install updates for a client. I am getting this error and I don't really know what it means. Any help of brief explanation for this would be appreciated.
  
  > Error: The "https://asset-packagist.org/packages.json" file could not
  > be downloaded: allow\_url\_fopen must be enabled in php.ini (https://
  > wrapper is disabled in the server configuration by allow\_url\_fopen=0
  > failed to open stream: no suitable wrapper could be found) Output:
  > Loading composer repositories with package information.
  
  **Tags:** php, error, json
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-31. Score: 2 | Accepted answer
  
  Type `php --ini` in your server environment, it should tells you where the `.ini` files are getting loaded.
  
  Then set
  
  ```
  allow_url_fopen = 1
  
  ```
  
  > **Comments:**
  > **username_2**: ^ - I'll add this is noted in the docs here: https://docs.craftcms.com/v3/requirements.html#optional-php-methods-and-configurations  
  
  ---
  
  