Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    1

    Default Automatic index page when account is created?

    I apologise if this has been asked before. I have searched but didn't find anything.

    We have our first WHM/cPanel server online. All others are Ensim Pro and I am used to a default homepage being created whenever a new site is added, but this does not appear to happen with WHM/cPanel.

    Presumably such a facility exists, but I need assistance on how to set things up so that any new account gets a default homepage.

    Many Thanks - Vger

  2. #2
    Member cpanelinfoseeker's Avatar
    Join Date
    Oct 2002
    Location
    NE Illinois
    Posts
    320

    Default

    In WHM, look for "Account Functions" and choose "Skeleton Directory". This will show you where your directory is. Anything you add to your skel directory will automatically be added to the users directory when you create a new account.

    Ron

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    That is correct; for example, if you place a default HTML page within the "public_html" sub-directory then it will be included within the public_html directory of the user's new account upon creation.

    Example paths:
    Code:
    /root/cpanel3-skel
    /root/cpanel3-skel/public_html
    /root/cpanel3-skel/public_html/index.html

  4. #4
    Registered User
    Join Date
    Nov 2009
    Posts
    4

    Default

    is there a way to do this depending on the package assigned when creating an account.

    Lets say i host alot of istes on a certain php script and want the files added in when i assign a certain package for creation
    but if its just a standard hosting account i dont want it included.

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by maderite View Post
    is there a way to do this depending on the package assigned when creating an account.

    Lets say i host alot of istes on a certain php script and want the files added in when i assign a certain package for creation
    but if its just a standard hosting account i dont want it included.
    This should be possible by using a "hook" (i.e., "postwwwacct"); this could be a custom script that runs after a new account is created, and the custom script could perform specific actions based upon the package.

    Here is our related documentation that will help while getting started and while researching how to accomplish the automated provisioning based on the package:
    WebHome < AllDocumentation/AutomationIntegration < TWiki

    The following is a section within the above documentation, more specific to the request:
    Hooking into cPanel Functionality
    ScriptHooks < DevHooks < TWiki

    On the "ScriptHooks" page, I recommend reading about "postwwwacct" as detailed in the documentation.

    Moderator Note: So that your question can receive more relevant feedback and discussion I recommend posting in the Developer area of the forums: Developer Discussions - cPanel Forums

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 12-10-2010, 10:32 PM
  2. Account Index Page
    By TomBullock in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-07-2009, 07:52 PM
  3. want to switch hom page from index.html to index.php
    By websoftbiz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-12-2008, 07:14 PM
  4. Which page do you want to load first index.html or index.htm?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 22
    Last Post: 04-10-2008, 09:36 AM
  5. Automatic Index Welcome Page.
    By zigga in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-19-2003, 12:39 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube