httpdocs owned by psaserv, my folder owned by psacln, and chmod 755 doesn't work [closed]

view story

http://stackoverflow.com – I'm having an issue with my website. I have some preset images in my server. My customers crop the images for their taste and purchase them. (They don't upload any images, just use the images on server.) On purchase page, I crop the images with PHP, resize to some width and move onto a folder so website owner can visually see what exactly is cropped. The problem starts here. PHP cannot save the cropped images in that folder with 755 permissions. It only works with 777, and I really don't want to leave a folder with 777 permissions in my website. I've been told that doing chown will fix it, (HowTos)