Right now i have to give 777 permission to the directory where files are saved and instead of saving it as "user1" is saving it as apache
-rwxrwxrwx 1 apache apache 6865 Aug 30 17:20 homepage.tpl.php
How can the files be saved as user1 and without 777 permission outside my docroot wich is home/user1/public_html/
lets say in /home/user1/private/homepage.tpl.php
Im using a Centos LAMP with suPHP.
Thanks in advance.