Alter for custom env variables and apache