Rewritebase / not in effect

The files that need to be modified are:

  • nc/.htaccess <-root
  • nc/config/config.php <- www(/-data/run)/http/apache

The issue is that they have different permissions, one is root owned, the other web server owned.
Also occ will run only with web server permissions.

So change permissions to .htaccess first, then run occ, and back again to secure .htaccess.
My two cents.