Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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,563
    Likes Received:
    42
    Trophy Points:
    308
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. gigapros

    gigapros Member

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

    gigapros Member

    Joined:
    Mar 10, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice