Looks like you are on a Debian/Ubuntu box? You probably need to chown the /data and /internal-data also. I always chown'd them all to the web browser - which I had use a special group instead of www-data. Then I changed the files to 664 and directories to 775 and added my user into the special user group that I created.