Transfer files from one user to the next
So, im making a new site where someone can sign up, and makes a new site for them via cpanel, all automatically. They can select what script they want (wordpress for example), and it will make the account, make the db, and make the files in the account.
A base wordpress file structure will be placed in resellers web account.
/home/reseller/wordpress
The new user that just signs up and has an account created, is named newguy (for example)
So I would need /home/reseller/wordpress to transfer its self to /home/newguy/public_html/.
My script is php based, but obviously I cant do much with php, so i will need to make php execute a shell script to do this.
Permissions are giving me a hard time... so do you guys have any advice?
|