title: Laravel storage disk put gives internal server error 500 on live server | no logs are created
body: <p>I am saving image files to disk. After that I create a ZIP and download it. Everything works fine on localhost.</p>
  
  <p>On the live server I get:</p>
  
  <pre><code>Internal Server Error
  
  The server encountered an internal error or misconfiguration and was unable to complete your request.
  
  Please contact the server administrator at webmaster@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
  
  More information about this error may be available in the server error log.
  </code></pre>
  
  <p>The error occurs if I want to save an image to the storage:</p>
  
  <pre><code>$user = DB::connection('mysql_live')-&gt;table('users')-&gt;where('id', $userid)-&gt;first();
  Storage::disk('gdpr')-&gt;put($user-&gt;picture, file_get_contents(env('AVATAR_PHOTO_SRC') . $user-&gt;picture));
  </code></pre>
  
  <p><code>env('AVATAR_PHOTO_SRC')</code> is the absoulte path to the image, example: <code>https://example.com/uploads/thumb/</code></p>
  
  <hr>
  
  <p>There is no log file created. And the size of the zip is less then 1MB, images are even smaller.</p>
  
  <p>What is happening here?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><code>$user-&gt;picture</code> is the name of the file. example: <code>example.jpg</code>.</p>
  
  <p>The file does exist and can be opened for example in the browser. Remember everything works fine on localhost.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I found a log in try, catch: </p>
  
  <pre><code>file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>PHP ini cant be modified on a shared server. I will need an alternative way to store the image.</p>