Script install error

I asked my hosting it says it dont have ''putenv ‘’ enabled on my hosting.

You get this error because the developer of your script doesn’t understand how environment variables work in Laravel.

Like the last 35 times this was asked), it can’t be enabled and won’t be disabled, because the function doesn’t do anything meaningful.


You can use global variables instead.

1 Like

Or just write the environment variable like any other variable. You can just to $_ENV['MY_KEY'] = 'value' to set the variable. The putenv function is only used if you want to pass environment variables to child processes, which is not what you need here.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.