Assign with logical or
Run it from root like so:  su root; sudo -u apache sudo-with-env.sh
Party time