Problem creating account using WWWACCT

sh4ka

Well-Known Member
May 12, 2005
444
0
166
Uruguay
cPanel Access Level
DataCenter Provider
When I create a new domain account using the wwwacct script.. the account is created with the secondary IP... and i don't want that.. i need to create the account with the primary IP.. how can I change that ? because if I do it using WHM there is no problem with IP.. any ideas how to fix this ?

Running from shell:
Code:
[email protected] [~]# /scripts/wwwacct domain.org username  password
WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.

   +===================================+
   | New Account Info                  |
   +===================================+
   | Domain: domain.org
   | Ip: xx.xx.xxx.112 (y) ---------- SECONDARY IP!
Running from WHM:
Code:
WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.

   +===================================+
   | New Account Info                  |
   +===================================+
   | Domain: prueba.com
   | Ip: xx.xx.xxx.111 (n) ---------- PRIMARY IP!
The main problem is that if i use shell it will asign the secondary IP, and after that no more domains can be created and an error appears "unable to find an ip address" (of course, because all IPs are being used..).
 

MrL22

Active Member
Jul 11, 2003
36
1
158
Tamworth, United Kingdom
Try opening SSH and log in as root, type 'pico -w /etc/wwwacct.conf' and change the IP address on the first line 'ADDR 000.000.000.000' and then save and exit, CTRL+X