sudo permission issue LoadModule wsgi_module

Solution 1:

You don't; you add sudo to the whole thing.

sudo sh -c "echo ... > ..."