Do I need to rebuild when my domain name changes?

I’m getting permission denied, so now I believe I need to change the file permissions, how and what do I change them to?