You say you are using the same ID? do you mean username or user id? you can have the same username but different IDs which can cause problems
grep <user_name> /etc/passwd
will give you the ID's (and group IDs).
Also what are the permissions?
My apache knowledge is very hit and miss, but apache gives ownership of files to the nobody user, try editing the files with root?