cPanel, WHM and Subdomains
Hello, currently i have scripts that i have created to create new users/accounts and generate files for new clients via php, although i was wondering if there was a way to automatically add a subdomain for an account without having to do anything myself, so that i can program it in.
Kind Regards
Lewis Stevens
-
Ah i have found the answer. For reference if anyone else wanted to do this is here: [url=http://vikku.info/programming/php/create-subdomain-dynamically-in-php-code-to-create-subdomains-in-server-using-php.htm]Create subdomains dynamically in php in cpanel. Creating and deleting subdomains in server using php and cpanel Hope this helps. Thanks Lewis 0 -
Hello :) You could also use the Accounts::Create hookable event: Hookable Event - Accounts::Create Thank you. 0
Please sign in to leave a comment.
Comments
2 comments