Set the correct environment for apache