MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to to list Subdomains, Addon domains and Parked domains of a cPanel account?  (Read 2979 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
Hello folks,

In a cPanel server, there is a file main in /var/cpanel/userdata/$username  which stores all accounts details associated with it. You can cat that file and see the Subdomains, Addon domains and Parked domains of a cPanel account.

EX:

#cat /var/cpanel/userdata/dipaklist/main

addon_domains: {}

cp_php_magic_include_path.conf: 0

main_domain: dipaklist.com

parked_domains: []

sub_domains:
  - sub.dipaklist.com

That's all, hope this post will help you.

Enjoy !!! :) :)


MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum