apache - Unable to get the environment variable using PHP hosted in amazon linux

one text

I set up the environment path in amazon linux vi /etc/environment as ENV_TYPE=DEV. Environment variable are set up in localhost but it not get the environment in web host.

In apache path /var/www/html I create a index.php with below code:

<?php
 echo "env ".getenv('ENV_TYPE');
 exit;
?>

I already tried the below commands for setup,

vi etc/environment --> ENV_TYPE=DEV

enter image description here

OUTPUT from my host is " **env **" only but expected Output is "env DEV" the issue is env only execute in this code , ENV_TYPE not fetched from environment variable!!!

output image enter image description here

i expected output image is enter image description here

Source