Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'Bind/DNS/Nameserver' 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:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice