Added log method. Added additional env vars to php-exec