I have installed my PHP based application on a lamp server in azure cloud.
I used the codes getenv('something');
to use environment variables for the application. I tried it on my local host and on heroku and both place it seems to work fine.
I have added the environment variables on my linux server in azure cloud at /etc/environment
and when when I use the command printenv
I can see all my environment listed there, for example like this login_username = root
and so on..
I rebooted the server, apache2 server but no luck.
I am not sure how to see any errors or see which environment variable is not working or if anyone of them is working or not. I googled alot of things online and it says you can do it from the azure dashboard but I had no luck with that as well.
So basically the only thing I am getting displayed right now is The application environment is not set correctly.