Setting environment variables in Magento using .htaccess or httpd.conf

.htaccess

OR

httpd.conf