title: Install Google Cloud SDK on server
body: <p>I'm using Openshift (Linux) to host my web-app. I want to use PHP to upload content to my Google Cloud Storage account. </p>
  
  <p>I've followed the <a href="https://cloud.google.com/sdk/downloads#linux" rel="nofollow">Installation Instructions</a> for the Cloud Storage SDK, but it seems that <code>install.sh</code> wants to write to the root directory (to which I don't have write permissions).</p>
  
  <pre><code>curl https://sdk.cloud.google.com | bash
  </code></pre>
  
  <p>Even though it prompts me to choose an installation directory (I choose <code>/var/lib/openshift/55c011/app-root/data</code>), into which it successfully un-tars the files, it still tries to access the root directory <code>/var/lib/openshift/55c011</code>.</p>
  
  <p>Here is the console output:</p>
  
  <pre><code>/var/lib/openshift/55c011/app-root/data/google-cloud-sdk/install.sh
  Welcome to the Google Cloud SDK!
  WARNING: Could not setup log file in /var/lib/openshift/55c011/.config/gcloud/logs, (Error: Could not create directory [/var/lib/openshift/55c011/.config/gcloud/logs/2016.07.25]: Permission denied.
  Please verify that you have permissions to write to the parent directory.)
  </code></pre>
  
  <p>Has anyone out there successfully installed Google Storage SDK on Openshift, or does anyone know how I can stop the installer from trying to write to the root directory?</p>