Im trying to automate the installation of some custom software using cpanel/whm and postwwwacct php script.This requires files to be copied to the users public_html folder then
This one worked for me. I've made some updates from @brunofitas answer