A simple solution to have a central location for your variable would be to put it in /etc/environment
and include it in /etc/init.d/httpd
.
$ vim /etc/environment
APPLICATION_ENV=production
$ vim /etc/init.d/httpd
if [ -f /etc/environment ]; then
. /etc/environment
fi
Then restart apache with /etc/init.d/httpd restart
and it should be OK.
If you are using ubuntu 16.04 or similar, replace /etc/init.d/httpd
with /etc/init.d/apache2
If you don't want to include environment file to apache, you can directly put your code in /etc/apache2/envvars
for example at the end of the file:
export HELLO='dear'