Skip to main content

Possibility to change script when creating users

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! When you change the document root are you using /home/username/public_html/public? If so, changing the directory root how you are doing is the best way, as that avoids the confusion of trying to use symlinks or redirects. If you wanted to try some automation with that process I'd recommend checking out the Accounts::Create section of our hookable events here:
    0
  • Ramon Pego
    what i do is in the document: var/cpanel/userdata/USERNAME/DOMAIN.COM and [...]USERNAME/DOMAIN.COM_SSL change this line: "documentroot: /home/user/public_html" to "documentroot: / home/user/public" and the same in: I already create accounts for an api that I developed, but they still have to go manually changing the "documentroot" of each newly created user.
    0
  • cPRex Jurassic Moderator
    Right, I understand that is the current process, but I don't have any pre-built automated ways you could do that at the time of account creation. That would need to be a custom script using the hook system mentioned above.
    0
  • Ramon Pego
    i see, i'll study more about it thx !!
    0

Please sign in to leave a comment.