I am looking for any ideas on where to start for coding a site that will host a forums script that I have already created so that users could just register. But what I am looking for the most efficient way to be able to host them and the catch is, that im gonna have some features for the user to be able to input their own domain names, site descriptions info (most likley just on the mysql database), and different styles for the forums. I was thinking that i could just have a php script fopen pages via WHM panel and make different accounts but that leads me to think, lets say i have around 5,000 (hopefully more) forums that users have made, then it would be 5,000 different cpanel accounts, which i presume that would be just a waste of space for something that does not need to exist and also 5,000 different /home/username/public_html/ directories when they could either all be from the same directory (and just have mysql provide the specs for grabbing the info) or all have different directories on one of the main hosts sites' files and also have the domains point to that as the main page.
The suggestions I need are (I just need to find the best way to do this)
-Which way will use the least ammount of proccess, but get the job done
-Which way will use the least ammount of diskspace but also not kill server usage
-And which possible way is there to have a large ammount of accounts but use the least server space and process
-How do i make a domain point to a folder inside a sites folder
-How can i do this by not having more than one server
-Bandwith is not to much of a problem but i want it so it is conserved
Specs
-I am going to buy a dedicated server just for the site and if it is mandatory, in the future, to get a new server because of space usage or over proccess usage I will just keep on adding servers.
-I will have full access to the server including root status, so using internal files like httpd domain config files could be used
-Im planning on doing this in PHP, .htacces, and internal server config files (Also know html css and little bit flash, but those dont help)
Sorry for the long write-up, i just don't have any idea how to efficently get this all done, the best way... and thanks for any help or suggestions