I have a script that allow me to create batches of subdomains for my websites. It interacts with Cpanel to do this. The problem is there is no way for me to choose which directory it creates the subdomain folders in. I would like it to create directories within the websites directory for each subdomain and each set of subdomains.
The way it works is i input the domain followed by a semicolon, then the subdomain in a text file. I would like the be able to also include a path starting at the domains directory and have the script generate the folders if they do not exist, so my web server is organized and easy to read and make changes.