Ok sorted.
Had to reapply all the permissions by hand then rerun the setup files, then change the permissions again.
Then rerun and setup couldn't open the cfg file as permissions where to strict, changed them from 600 to 644, ran again and it ran as it should, the only thing it couldn't do was delete the setup files, did that by hand.
Thumbnails now being created and everyone can upload and delete pictures now.