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.

Add index.php or index.htm in new domain

Discussion in 'General Discussion' started by hostyasui, Apr 12, 2007.

  1. hostyasui

    hostyasui Registered

    Joined:
    Feb 19, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kathmandu,Nepal
    Hi,
    Is there a way to automatically create index file when we add a new domains. Default it doesnot create the index.php or index.htm file.
     
  2. support

    support Active Member

    Joined:
    Aug 30, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    index file

    Login to server via ssh and put an index.html or index.php file whichever you want under cd /root/cpanel3-skel/publich_html folder

    This directory is what will be used as a skeleton for new accounts. For example if you place an index.html file in /root/cpanel3-skel/public_html, and then setup a new account, that account will have a copy of your index.html in their public_html directory.
     
Loading...

Share This Page