Handle apache and envvar in update.py.