Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Nov 2002
    Posts
    90

    Default How to make an auto index.html page?

    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. #2
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    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!
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  3. #3
    Member
    Join Date
    Nov 2002
    Posts
    90

    Default

    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. #4
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    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/
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  5. #5
    Member
    Join Date
    Nov 2002
    Posts
    90

    Default

    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!

  6. #6
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Jan 2003
    Posts
    156

    Default

    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. #7
    Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    461

    Default

    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....hlight=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!
    Apache to die or not to die, that is the question...

  8. #8
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Jan 2003
    Posts
    156

    Default

    Thank you SoftmegUK for turning me onto that other thread I used the script in there that Juanra wrote and it does exactly what I want it to!

  9. #9
    Member
    Join Date
    Mar 2003
    Posts
    89

    Default

    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. #10
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  11. #11
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Originally posted by c4host
    cpanel13-skel
    Is this a spelling error in your post, or did you possibly create a directory by that name?

    Just another possibility.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  12. #12
    Member
    Join Date
    Mar 2003
    Posts
    89

    Default

    just spelling

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge jackal's Avatar
    Join Date
    Feb 2002
    Posts
    708

    Default

    http://forums.cpanel.net/showthread....5&pagenumber=2


    Look for Juanra's post. We use it works great!

  14. #14
    Registered User
    Join Date
    Apr 2003
    Posts
    1

    Default

    Originally posted by SoftmegUK
    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:

    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!
    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. #15
    Member
    Join Date
    Mar 2003
    Posts
    89

    Default

    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:

Similar Threads & Tags
Similar threads

  1. 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, 08:14 PM
  2. 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, 10:36 AM
  3. Default index.html page
    By rootuser in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-22-2006, 04:38 AM
  4. Is this the way to add an index.html page
    By nikaian in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-10-2005, 03:38 PM
  5. New index.html page on base server name
    By jsteel in forum cPanel and WHM Discussions
    Replies: 25
    Last Post: 02-27-2004, 09:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube