You don't want to go editing your web files as root that could potentially make apache very unhappy
You should make your current user be a member of the same group as apache is and make sure the permissions are right for that kind of setup.
good luck!