PDA

View Full Version : creating automatic addon domains for web hosting?


hws
03-24-2009, 12:07 AM
Hi....is it possible to get a php script to allow automatic addon domains into my account? At the moment i have no idea how to do this and am very interested as i know it HAS been done.

twodayslate
03-28-2009, 03:56 AM
by addon domain you mean subdomain?
http://www.google.com/search?hl=en&q=create+subdomains+dynamically&btnG=Google+Search&aq=0&oq=create+subdomains

hws
03-28-2009, 12:46 PM
No.....a subdomain is like this http://support.yourdomain.com.

Addon domain is a brand new domain name like www.mycompany.com that can be added to the original domain name called www.yourdomain.com.

I want addon domains to be automatically added to my original cpanel account without me taking any actions.

freedom_razor
03-28-2009, 09:30 PM
Addon domain is a subdomain, just redirects make it look different. Try mycompany.yourdomain.com, should show the same as www.mycompany.com

A script for automating adding addon domains. (http://www.spotonseoservices.com/free-cpanel-php-script-automate-creation-addon-domains/)

hws
03-31-2009, 01:40 AM
Cheers,

Spots on script got me started but it was different. So i did a new one from scratch.

I have now sorted my codes out and seems to work fine....only for one small thing. I'm not sure if you can help with this. Please let me know.

Within my code, when i sign up with a fake addon domain that is automatically sent to my cpanel account via a user input i get their email username added to my domain name as their email address and not the name of their domain. The same thing goes for their database and ftp accounts.

Is this because the domain name is not registered and the name servers is not set to my name servers, so the names will automatically be set to my domain name. If they were registered and name servers were set will this work without any problems?

hws
03-31-2009, 12:25 PM
I contacted the cpanel people and they mentioned that:
There is currently no funtionality to add ftpusers with addon domains as part of their login name. Also, email accounts are not automatically set up as well

Is there a way to work around this and get it done?