The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Auto activate servlet support for new account

Discussion in 'General Discussion' started by gigapros, Jul 27, 2010.

  1. gigapros

    gigapros Member

    Joined:
    Mar 10, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I understand that I can activate Tomcat servlet support for an existing CPanel account thru: WHM >> Install Servlets

    But, how to AUTO activate servlet support as soon as a NEW Cpanel account is created? :confused:

    Thank You.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You could add a /scripts/postwwwacct hook script that calls /scripts/addservlets2 with the domain name as a parameter.

    Information on using /scripts/postwwwacct is found in our SDK Documentation
     
  3. gigapros

    gigapros Member

    Joined:
    Mar 10, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Perfect! Thanks Kenneth. :)
     
  4. gigapros

    gigapros Member

    Joined:
    Mar 10, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi Kenneth,

    Just to clarify, do you mean the following steps?

    1) Create the file /scripts/postwwwacct (it doesn't exist on my server)
    2) Add this line to the above file: /scripts/addservlets2 --domain=$domain

    Thanks for your help.
     
Loading...

Share This Page