sets phps environment via proxy_env