Cpanel provide several usefull scripts in /scripts folder. /scripts/wwwacct is a script used for creating hosting account.
The syntax of wwwacct script is
[root@server10 root]# /scripts/wwwacct
WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.
Please use the this syntax
wwwacct
[root@server10 root]#
To create hosting account for a domain through SSH do
In this example,
bizhat.com is the domain we are going to add.
bizhat is the user name
12345678 is the password
server10# /scripts/wwwacct bizhat.com bizhat 12345678 50 advanced n
WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.
+===================================+
| New Account Info |
+===================================+
| Domain: bizhat.com
| Ip: 69.59.144.184 (n)
| HasCgi: y
| UserName: bizhat
| PassWord: 12345678
| CpanelMod: advanced
| HomeRoot: /usr/home
| Quota: 50 Meg
| NameServer1: NS1.HOSTONNET.COM
| NameServer2: NS2.HOSTONNET.COM
| NameServer3:
| NameServer4:
| Contact Email:
+===================================+
This ok? yes
Keeping Shell Access (y)
Copying skel files from /root/cpanel3-skel/ to /usr/home/bizhat/
Using Quota v1 Support
Added Entries to httpd.conf
Bind reconfiguring on uncle using rndc
Added Named File
Note: Local version of Apache must use the FrontPage Apache patch.
Starting install, port: 80.
Creating web http://www.bizhat.com.
fpfakeout: getpwnam handled
Not chowning content to root in service /.
Install completed.
Setting Password
Frontpage passthough auth enabled!
Restarting apache
Ftp Password Files synced
Vhost Passwords synced
Notifcation => spam@hostonnet.com via EMAIL [level => 3]
Notifcation => spam@flashwebhost.com via PAGER [level => 3]
wwwacct creation finished
server10#
Cpanel Server Tips
This blog is nice and very informative. I like this blog Please keep it up.
ReplyDelete