If the need ever arises you can use C# to use the DotNetNuke API to programmatically create portals you can use the code listed below. Of course the code will need all the right permissions to do this. You will need the following information to create the portal.
- Portal Name
- Administrator first name and last name
- Administrator username and password
- Administrator email
- Portal description
- Portal Keywords
- Name (including path) of the template to the applied to the portal
- Portal Alias
- Server path (the path to the root of the Application)
- If it is a child portal the child path (the path to the child portal folder)
Listed below are the required steps to create the portal and perform some essential house keeping activities:
- Make sure that the alias does not contain the string "http://".
- Check if the required alias is available.
- Encrypt the administrator password with the machine encryption key.
- Get all the required paths: template path, home directory and server path.
- Create the portal.
- Add the new http alias (url) to the Http handler.
- Log the portal creation event tp DotNetNuke's event log.
In the next few days, I'll add a detailed post for each of the steps listed above.
Update 1: I've just posted an article on Programmatically checking if the required alias is available in DotNetNuke
Update 2: I've just posted an article on Programmatically creating DotNetNuke user passwords