Portal Home > Knowledgebase > Articles Database > How to add new account and new addon domain and subdomains without cpane
How to add new account and new addon domain and subdomains without cpane
Posted by razib19, 04-06-2015, 03:01 PM |
Hello.
Is it possible to add new hosting account, adding new domain on an account and creating subdomain without cpanel ?
I mean using putty or winscp ?
My cpanel licence has expired and I am not able to update it now. Nut i need to add some subdomains and create a new account.
Some one please help me it its possible without cpanel.
|
Posted by Bbnuse, 04-06-2015, 06:15 PM |
Hi,
PuTTy will do the job as a SSH client.
You should be able to add new domains and also subdomains by editing httpd.conf, you will also need to manually create the directories for the new account and subdomains, and so on.
Keep in mind that this is not how a cPanel server is supposed to work. You should update that license asap.
|
Posted by Srv24x7, 04-07-2015, 10:07 AM |
Hi,
You can manage CPanel from backend.
For creating main account, use below command;
/scripts/createacct
Creating addon domain is same as creating subdomain from the back end.
Below are the steps:
--------------- ---------------
For eg: SUBDOMAIN: addon.main_domain.com
then ADDONDOMAIN : addon.com
These are the things you have to do:
1. DNS
Create the dns entries.
a) /etc/named.conf
~~~~~~~~~~~~~
zone "addon.com" {
type master;
file "/var/named/addon.com.db";
};
~~~~~~~~~~~
b) Create the db file in the path: /var/named/addon.com.db
2. HTTP.CONF
~~~~~~~~~~~~~~
Create the entry in http.conf.
It is similar to the entry of subdomains. Set the DocumentRoot to the directory of addon domain,
~~~~~~~~~~~~
DocumentRoot /home/user/public_html/addon
~~~~~~~~~~~
You have to add an additional entry like this.
~~~~~~~~~~
ServerAlias addon.main_domain.com addon.com
~~~~~~~~~~
3. CPANEL CONFIGURATION FILES.
a) /var/cpanel/users/username
Add the entries like this
~~~~
DNS18=addon.main_domain.com
DNS19=addon.com
~~~~~~
b) /etc/userdomains
Add the entries like this
~~~~
addon.maindomain.com: username
addon.com: username
~~~~
c) /etc/localdomains
Add the entries like this
~~~~
addon.maindomain.com
addon.com
~~~~
d) Create a file /etc/valises/addon.com
e) Create a file /etc/vfilters/addon.com
--------------- ---------------
You might need to modify these a little bit as per the subdomain.
|
Posted by razib19, 04-07-2015, 10:38 AM |
Many many thanks for the details...
|
Posted by eth00, 04-07-2015, 12:55 PM |
If you don't want to continue using cPanel you should really consider moving to a new VM without cPanel. Running it over time without the license will be a problem from a systems and security standpoint.
|
Add to Favourites Print this Article
Also Read