Results 1 to 22 of 22
  1. #1
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    6,990

    Change of default page in Cpanel

    Is there any function in cpanel that allows you to set your own default page instead of the typical index,default.htm/html?

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    You mean, when an account is created you want your own index.html put in their /public_html/ directory?
    RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca

    www.HostingSecList.com - Security Notices for the Hosting Community.

  3. #3
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    6,990
    No I mean instead of index.html I want the default page to be say abc.pl . Anyway to change that?

  4. #4
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    You could try changing it globally under the Apache httpd.conf file:

    <IfModule mod_dir.c>
    DirectoryIndex abc.pl index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm defaul.html
    </IfModule>
    If you put abc.pl before index.html, it should become the default page... although depending on what you're trying to accomplish, you may have to remove the other entries.

    More information:
    http://httpd.apache.org/docs/1.3/mod/mod_dir.html
    RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca

    www.HostingSecList.com - Security Notices for the Hosting Community.

  5. #5
    Join Date
    Jun 2007
    Posts
    44
    Hi,

    If you wish to use an alternate file as a default index page for perticuler domain. You can set following directive in .htaccess

    DirectoryIndex abc.pl

  6. #6
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    6,990
    Thanks! This is great advice, will try it out

  7. #7
    Join Date
    Apr 2004
    Location
    Singapore
    Posts
    620
    Try cpanel-skel directory. This is the skeleton of what going contain in public_html.

  8. #8

    make my own default home page

    Quote Originally Posted by Pat H View Post
    You mean, when an account is created you want your own index.html put in their /public_html/ directory?
    hi,
    I want to setuo my own default home page when an account created in Cpanel.
    What shoul I do?

    Regards,
    Behrang

  9. #9
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Quote Originally Posted by threedjump View Post
    I want to setuo my own default home page when an account created in Cpanel.
    Create the HTML files and put them under /root/cpanel3-skel and when a new cPanel account is created, those files will be placed under the customers /public_html/ directory. If you do not have root (such as if you're a reseller) then there should be a /cpanel3-skel/ directory under your primary reseller account.
    RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca

    www.HostingSecList.com - Security Notices for the Hosting Community.

  10. #10
    Hi,
    many thanks for your help.
    I have another question.
    How can I setup Cpanle to send the host information email automaticly?
    when an account is created, an email send to user that contain needed login information for user?

    Regards,
    Behrang Mousavi

  11. #11
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    By default the new account login details are sent to the "Server contact email address" specified in the server setup. There is no setting in WHM by which you can change this behavior in the manner you have specified.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  12. #12

    Cool change default.htm to another page

    Okay what boonchuan actually wanted to know was.

    How do you set the default home page in CPanel?

    When you type the url without the page filename, then it would automatically load...default.htm instead of index.php.

    Well Boonchuan here's how you do it.
    Go to Domains
    Select the domain you want to Edit.
    Then Select Web Site Settings
    In the "Default Docs" box, make sure the file you want to use is at the top of that list.

    NOT EVERYTHING has to be done the hard way

  13. #13
    Join Date
    Jul 2009
    Location
    NC
    Posts
    938
    Quote Originally Posted by LoSkroefie View Post
    Okay what boonchuan actually wanted to know was.

    How do you set the default home page in CPanel?

    When you type the url without the page filename, then it would automatically load...default.htm instead of index.php.

    Well Boonchuan here's how you do it.
    Go to Domains
    Select the domain you want to Edit.
    Then Select Web Site Settings
    In the "Default Docs" box, make sure the file you want to use is at the top of that list.

    NOT EVERYTHING has to be done the hard way

    Dude, 8 month old thread...
    ☆☆☆ Cool Domain Names - DomainSale.link☆☆☆

  14. #14
    Quote Originally Posted by GORF View Post
    Dude, 8 month old thread...
    errr dude.. I googled it and google gave me the link, TOTALLY WASTED my time clicking on it ... had to figure it out myself...

    Now..the thread actually has the answer, stop complaining!

  15. #15
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    Try to use a bit of common sense friend
    Boonchaun asked this question on "09-26-2007". So its almost 2.5 years old. He most probably does not need answer for this now.

  16. #16
    erm, dude, and I googled this issue on "16-02-2010" to find a solution...
    Surely my common sense says the solution is now there for any "other" people that googles the question ...to find the solution here.

  17. #17
    Good post i can tell you that hosting is really a deal.

  18. #18
    No, but I needed the same advice. Asynchronous help, thanks to search engines.

    Appreciated!

  19. #19

    It helps.

    I went out of my way to register here just to say thanks. Even though he posted after 2 some-odd years, it came in useful for me! Hooray for the internets.
    Thanks again, saved me some time.

  20. #20
    Quote Originally Posted by LoSkroefie View Post
    Okay what boonchuan actually wanted to know was.

    How do you set the default home page in CPanel?

    When you type the url without the page filename, then it would automatically load...default.htm instead of index.php.

    Well Boonchuan here's how you do it.
    Go to Domains
    Select the domain you want to Edit.
    Then Select Web Site Settings
    In the "Default Docs" box, make sure the file you want to use is at the top of that list.

    NOT EVERYTHING has to be done the hard way
    Hi, under domains I only have sub domains etc - nothing about web site settings - where do i find it?

  21. #21

    Help

    Quote Originally Posted by Patrick View Post
    Create the HTML files and put them under /root/cpanel3-skel and when a new cPanel account is created, those files will be placed under the customers /public_html/ directory. If you do not have root (such as if you're a reseller) then there should be a /cpanel3-skel/ directory under your primary reseller account.
    Sorry for the bump but this doesnt work for me. Can you help me?

  22. #22
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    14,135
    There's an editor in WHM now that can change default page content. Search WHM for template editor
    Tom Whiting, WHMCS Guru extraordinaire
    Linux problems? WHMCS Problems? Give me a shout
    Check out my WHMCS Addons

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •