Answers.Body: <p>DotEnv only calls <code>putenv</code> if it sees the function is available since version 2.4.0, so make sure you're running at least that: <a href="https://github.com/vlucas/phpdotenv/commit/58633a061610ffd731d7fbbc8f7f009d14b2e4cf" rel="nofollow noreferrer">https://github.com/vlucas/phpdotenv/commit/58633a061610ffd731d7fbbc8f7f009d14b2e4cf</a></p>
  
  <p>Even then, I'm pretty sure other Craft dependencies (like Composer) will still require <code>putenv</code> support.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-08T18:01:42.387Z
Answers.LastActivityDate: 2019-08-08T18:01:42.387Z
Answers.UserDisplayName: Brad Bell
Body: <p>I’m using shared hosting which supports several CMS like Wordpress, Jumla, etc. In <code>phpinfo</code> there is <code>putenv</code> in <code>disable_functions</code>. Craft CMS needs this function to load variables from <code>.env</code> file. I can acces all varibales at least from <code>$_ENV[]</code>. </p>
  
  <p>Is there a way how I can install and use Craft CMS in this environment or is putenv(), getenv() must have?</p>
  
  <p>Thanks a lot for help</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-07T19:14:41.430Z
Comments.Text: In 2019, there are so many amazing managed and unmanaged VPS services, there's no reason to live with shared hosting. Check out [How Agencies & Freelancers Should Do Web Hosting](https://nystudio107.com/blog/web-hosting-for-agencies-freelancers)
Comments.UserDisplayName: andrew.welch
Tags: <installation>
Title: Is it possible to run Craft CMS with putenv() function disabled?
ThreadText: # Is it possible to run Craft CMS with putenv() function disabled?
  
  (Asked by: username_0 on 2019-08-08)
  
  I’m using shared hosting which supports several CMS like Wordpress, Jumla, etc. In `phpinfo` there is `putenv` in `disable_functions`. Craft CMS needs this function to load variables from `.env` file. I can acces all varibales at least from `$_ENV[]`.
  
  Is there a way how I can install and use Craft CMS in this environment or is putenv(), getenv() must have?
  
  Thanks a lot for help
  
  **Tags:** installation
  
  > **Comments:**
  > **username_1**: In 2019, there are so many amazing managed and unmanaged VPS services, there's no reason to live with shared hosting. Check out [How Agencies & Freelancers Should Do Web Hosting](https://nystudio107.com/blog/web-hosting-for-agencies-freelancers)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-08-08. Score: 0
  
  DotEnv only calls `putenv` if it sees the function is available since version 2.4.0, so make sure you're running at least that: <https://github.com/vlucas/phpdotenv/commit/58633a061610ffd731d7fbbc8f7f009d14b2e4cf>
  
  Even then, I'm pretty sure other Craft dependencies (like Composer) will still require `putenv` support.
  
  
  ---
  
  