Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-30, 02:57:47

Author Topic: How to dynamically create subdomains at Kloxo  (Read 3322 times)

0 Members and 1 Guest are viewing this topic.

Offline mowagdy

  • Junior Member
  • *
  • Posts: 1
  • Karma: +0/-0
  • Gender: Male
    • View Profile
How to dynamically create subdomains at Kloxo
« on: 2017-06-12, 10:54:27 »
I'm using Kloxo and now I'm creating a project that each user has a subdomain.
In other words, when a new user registered, a new subdomain automatically created with its username.

How can I make that dynamically?

Offline mehawk

  • Valuable Member
  • *
  • Posts: 63
  • Karma: +0/-0
    • View Profile
    • Xplore Tech
Re: How to dynamically create subdomains at Kloxo
« Reply #1 on: 2017-06-12, 13:09:20 »
Yes i believe there is a kloxo api which can help you in this..

Without api you can try to search for script in /script folder to do it manually. If you found a way to it manually then you can automate it using php. For example, you can use following bash command to add mail accounts manually.

I use the scripts in the directory /script. There is one named 'add' which I call like this:

sh /script/add --parent-class='mmail' --parent-name='DOMAIN' --class='mailaccount' --name='MAILACCOUNTNAME' --v-password='PASSWORD'

This of course requires that the domain and client records are already in kloxo.

It will depend on you what you other details you want to populate upon creation. Refer to the table 'mailaccount' under 'kloxo' database to see the column names/details.
Website Designing, Development, Kloxo MR Based Hosting : https://www.xploretech.net | https://www.heraldlynx.com
Social Network: https://www.socialbees.me

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.041 seconds with 22 queries.

web stats analysis