Mass-add co-domain

Discussion in 'Installation/Configuration' started by gavro, Aug 16, 2007.

  1. gavro

    gavro New Member


    I've been using ISPConfig for a while now and I am very content with it! I just have a question concerning adding co-domains....

    I've been doing the following to add (sub)domains for a certain website:
    -> co-domains -> add --> add newdomain.tld
    -> co-domains -> add --> add www.newdomain.tld

    But now I have a 'slight' problem: I've got a list of 20+ domainnames and for each name there are 5 tlds (.com, .nl, .eu, .net, .nu). So I have to add more then 200 co-domains (domain.tld + www.domain.tld).

    Is there a way of mass-adding co-domains?
    Editing Vhosts_ispconfig.conf is not an option as this get overwritten by ispconfig.

    I've been searching through the mysql database. I've found isp_isp_domain, but I dont see any entry linked to the approriate webid, so adding domains there doesnt finish the job I reckon?

    Is it possible?
  2. gavro

    gavro New Member

    I've fixed it like this:

    create a new conf file with a new (extra) virtualhost directive with the necessary conf in it (serveraliases etc). This file is included in httpd.conf at the end (after Vhosts_ispconfig.conf).

    It is not an elegant solution, but I _REALLY_ did not want to add 200+ domains manually...

    But this (mass-add) still might be a nice feature for v3 perhaps? :)
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    There is already a tooolkit for doing this, named remoting framework.

    The problem is that the current Beta lets you add everything easily (resellers, clients, users, websites) except of co-domains, which is not implemented yet :(
  4. gavro

    gavro New Member

    Will it be implemented?

    I might be interested to help with the development of the toolkit, if I seem to find the time I'd be glad to contribute work myself...

    Implementation of the toolkit is also in php5 I presume? Are there any datamodels available (going through the database myself is rather a tedious job as I've found out yesterday :) )
  5. till

    till Super Moderator Staff Member ISPConfig Developer


    That will be great!


    No, we dont have them yet.

    Implementing the missing fuctions should be not so problematic. They must be implemented in the file /home/admispconfig/ispconfig/lib/classes/ispconfig_web.lib.php. If you dupliacte all user_* functions in thsi file and name them domain_* and then replace the database table in the sources of thes e functions from isp_isp_user to isp_isp_domain and cahnge the parameters / sql statements to match the column names in the database table isp_isp_domain. The variable $this->web_doctype_id will have to be repleced with $this->domain_doctype_id, if I remember correctly. Or you replace it just with the number 1014 :)
  6. gavro

    gavro New Member

    I'll make a duplicate test-VM of my production server and apply for development in september then. Will be sending an e-mail soon to dev@ for the svnpass then :)

    I'll be glad to contribute code to the product I've been using happily for some time now!

    (It shows that you've been at this project for ages now [8 year since the first files I believe?]!)
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, this might be the case. I started the project, but I do not remember exactly when I wrote the first files :)

Share This Page