Skip to main content

Syntax of /scripts/wwwacct ?

Comments

13 comments

  • KostonConsulting
    [quote="sspitfire, post: 1529011"> what is :
    plan is the package to use when creating the account [QUOTE]
    This is the name of a feature list (optional as it is defined by plan). See 'Feature Manager' in WHM to find their names. [QUOTE]
    This will create the DNS with the nameservers specified at the domain registrar rather than the nameservers configured in WHM. [QUOTE] can i specify DNS settings ?
    No. This must be done via the DNS functions in the cPanel API. You can find the PHP class to access the API here:
    0
  • sspitfire
    i dont want to use a plan - so do i put "n" as an argument or just skip it ? I dont want to use any feature lists - what would the argument for this be - disabled, default or "n" ? I need to use the local NS in WHM - do i skip or do I put "n"? I actually dont need to add or edit a zone record - I just need to enable SPF and DKIM when creating the account. So how can I do this ?
    0
  • KostonConsulting
    [quote="sspitfire, post: 1529162">i dont want to use a plan - so do i put "n" as an argument or just skip it ?
    You can only skip an argument if there are no arguments after it because otherwise the script will just pull in the next argument thinking it is for plan. Why do you not want to use a plan? Setting the values for disk space, bandwidth, sub domains, etc in a plan will allow you to keep easy visual tabs on what customers have what resources available as well as modify multiple accounts if you decide to change what service levels you offer. [QUOTE]I dont want to use any feature lists - what would the argument for this be - disabled, default or "n" ?
    This seems odd. What happens if you find out that customers are confused by a certain feature or you don't want to offer a feature? With a feature list, you can turn that feature off once and it will disappear from all account with that list. [QUOTE]I need to use the local NS in WHM - do i skip or do I put "n"?
    Using the WHM name servers is the default option. Use 0 to turn off use_registered_nameservers [QUOTE]I actually dont need to add or edit a zone record - I just need to enable SPF and DKIM when creating the account. So how can I do this ?
    Under 'Tweak Settings' >> 'Domains' in WHM, you need to set this option to 'on': Enable SPF on domains for newly created accounts DKIM should be on by default but can be set in the same location if it is not.
    0
  • sspitfire
    Thanks for the reply. My problem now is its always creating the account on the same IP. Im putting "y" on the IP option which means "dedicated IP: yes" correct ? How can I create each account on a different IP ? this is my command: "/scripts/wwwacct test5.domain.com niks userpass 100 0 y y y 5 5 5 5 5 100 n"
    0
  • KostonConsulting
    [quote="sspitfire, post: 1538451">Thanks for the reply. My problem now is its always creating the account on the same IP. Im putting "y" on the IP option which means "dedicated IP: yes" correct ? How can I create each account on a different IP ? this is my command: "/scripts/wwwacct test5.domain.com niks userpass 100 0 y y y 5 5 5 5 5 100 n"
    IP=y should assign the account to the next available IP on the system. You'll need to make sure that you haven't reserved the IPs. You can check to see if there are any IPs left in the available pool with: #cat /etc/ipaddrpool
    0
  • sspitfire
    Thank you !
    0
  • sspitfire
    [quote="KostonConsulting, post: 1541901">IP=y should assign the account to the next available IP on the system. You'll need to make sure that you haven't reserved the IPs. You can check to see if there are any IPs left in the available pool with: #cat /etc/ipaddrpool

    Im having problems again . IP=y is set but its creating them all on the same IP . I have free unreserved IPs in ipaddrpool. how do I make it choose a different IP forevery new account?
    0
  • MilesWeb
    Find for ADDR in /etc/wwwacct.conf. It will show a default IP. When you create an account, it creates the account and uses this IP. Change the IP in this file and then create the account. Every account you create will be assigned with the IP defined in the file /etc/wwwacct.conf
    0
  • cPanelDon
    [quote="sspitfire, post: 1639462">Im having problems again . IP=y is set but its creating them all on the same IP . I have free unreserved IPs in ipaddrpool. how do I make it choose a different IP forevery new account?
    What is the full version number of cPanel&WHM that is installed where you're experiencing the issue with IP address assignment during command-line account creation? To find your version, you may input the following via command-line as root, then copy-and-paste the output:cat /usr/local/cpanel/version
    I believe this might be related to internal case 97277 and ask for your specific cPane&WHM version number to help gather more information. Thank you! :)
    0
  • sspitfire
    cat /usr/local/cpanel/version 11.42.1.15
    0
  • cPanelMichael
    Internal case number 97277 is addressed in cPanel version 11.42.1.15, but that build was only released on 2014-05-13 (after you first reported the issue). Could you verify if the issue persists at this time? Thank you.
    0
  • sspitfire
    The problem is resolved in 11.42.1.16
    0
  • cPanelMichael
    I am happy to see the issue is resolved. Thanks for updating us with the outcome.
    0

Please sign in to leave a comment.