Ensure file permissions are correct