Removed apache environment varialbe (doesn't work for a lot of things, WPCLI is one) and used a file-based environment setting instead.