Fix 'pip externally managed environment' Permission Denied Error - Nginx Permission Denied Error Log Location and Fix-Fixing git merge unrelated histories errors with conflicts

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.