The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating sub domain (DNS A-Record) with PHP - pointing to the hosted Folder

Discussion in 'Bind / DNS / Nameserver Issues' started by chuddy09, Mar 31, 2014.

  1. chuddy09

    chuddy09 Registered

    Joined:
    Mar 31, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We working on a new project that will allow us to create sub-domains for most application and C-Level officers and work group blogs. We hope to manage each account in securely and allow admin officers to fill a form and create: folder, domain name(sub-domain on host pointing to the folder), email addresses (based on the sub-domain name), database, and create files.

    Can any body help us with info on how to achieve the following:

    1) Create sub domain (DNS A-Record) pointing to the hosted Folder
    2) Create Email Address, with the sub-domain name.

    Thank you.

    Prince C. Benjamin,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Assuming you do not plan to use cPanel itself, you would have to use our API within your PHP application. Searching for "PHP API" on our forums is a good way to get started. You will get results such as this:

    Using API to add Email Accounts through PHP

    Thank you.
     
Loading...

Share This Page