I need to create a script installer on a VPS with Cpanel api and WHM access (btw: hostgator), which will do the following: When user registers on my site - with my custom installer script), the script will create a CPanel account with WHM API. After that I'll need to copy a bunch of files to user's new directory from my main directory. for example:
- my script which should do the copy operation is in /home/[main reseller account]/public_html/register.php
- source files for copy operation are here /home/[main reseller account]/public_html/script_base
- I need to copy that into /home/[newly created user account]/public_html/
The problem is I have no permission to access /home/[newly created user account]/public_html/ from my script which is in the folder /home/[main reseller account]/public_html/script_base
I could use FTP and upload files to user's public_html one by one, by I would really want to avoid that if possible.
Any idea is appreciated, and thanks in advance for your help!