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.

How to make an auto index.html page?

Discussion in 'General Discussion' started by hugo24, Apr 22, 2003.

  1. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Hello all,

    Instead of after creating a new account, it shows the index page with directory, how could I make a default page showing something like, "this account has been setup"?

    I know I could upload an index.html file to replace it but is there any way that I could make it auto instead of uploading it whenever i create a new account?
     
  2. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    in your root folder you will see a folder called:

    cpanel3-skel

    Put anything you want in there and it should make it to a freshly installed account. Your can even include support docs and a full website that will get cloned when a account is created. Resellers also have this cpanel3-skel folder for when they create accounts.

    Have fun!
     
  3. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Bloke...

    But how do I exactly do it? I have to access in from root?
    Lookup for that folder and use the editor to do it?

    Will appreciate if you could guide me further.

    Thanks again.
     
  4. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    sure.. shh as root.
    ------------------------
    root@yourbox #
    cd cpanel3-skel/public_html <enter>

    root@yourbox [~/cpanel3-skel/public_html]#

    vi index.html

    hit shift I and then paste in html code you copy from the computer you developed it on. When done hit esc :wq enter. save it.

    You can also FTP ot to a user account and then do this.

    mv /home/theuser/public_html/index.html cpanel3-skel/public_html/
     
  5. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Great! Thank you for the kind assistance!

    Well, i supposed it will works across all new account for
    the first method? I will try both anyway.

    Thanks! :D
     
  6. imagic

    imagic Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Is it possible to have this index.html file show the domain name associated with the account?

    For example:

    Welcome to InsertTheDomainNameAutomaticallyHere
    This website is still under construction, blah, blah, blah

    Thanks!
     
  7. SoftmegUK

    SoftmegUK Well-Known Member

    Joined:
    Feb 13, 2002
    Messages:
    372
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    If you have root access you can modify the wwwacct script to make an file that contains the domain information etc that is in this post:

    http://forums.cpanel.net/showthread.php?s=&threadid=7476&highlight=wwwacct

    Myself I prefer to use either SSI includes or use PHP.

    For example

    SSI: index.shtml:

    "Welcome to future home of <!--#echo var="SERVER_NAME" -->"

    PHP: index.php

    "Welcome to the future home of <?php print $HTTP_HOST; ?>"

    Hope this helps!
     
  8. imagic

    imagic Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Thank you SoftmegUK for turning me onto that other thread :D I used the script in there that Juanra wrote and it does exactly what I want it to!
     
  9. c4host

    c4host Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Ok I ftp'd the files to the root cpanel13-skel and they are there but nothing on a new site a create?

    I restarted apache but no luck

    Any Idea
     
  10. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Are you using root WHM or a reseller WHM. Resellers get their own cpanel3-skel directory. Are you putting the index file in the public_html directory under the cpanel3-skel directory? That's where it needs to be. You don't need to restart apache.
     
  11. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Is this a spelling error in your post, or did you possibly create a directory by that name?

    Just another possibility.
     
  12. c4host

    c4host Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    just spelling
     
  13. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
  14. tadpole

    tadpole Registered

    Joined:
    Apr 26, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Are there parameters that a reseller can use to customize an "index.html" file such as including the domain name.

    cPanel.net Support Ticket Number:
     
  15. c4host

    c4host Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    DO I need to change something? Only sites that I create are getting the default index page I created. If the resellers create one then nothing!!

    I use the root access and put it in cpanel3 skel directory in the public_html

    cPanel.net Support Ticket Number:
     
  16. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Resellers have their own skeleton directory within their home directory. Resellers are getting nothing because their skel is empty!

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page