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.

Order Execution of index.XXX files

Discussion in 'General Discussion' started by Computerbob, Jan 20, 2008.

  1. Computerbob

    Computerbob Active Member

    Joined:
    Feb 5, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Somewhere within the WHM screens I have seen a list of what file executed first when going to a web site. For the life of me I can’t find it again.

    This list show stuff like

    Index.htm
    Index.html
    And so on.

    I need to edit this list.

    Since we upgraded to Cpanel 11 the order of the files seems to have changed. Before the index.html was the first file displayed then index.htm. Now it index.htm and then index.html.

    I what to switch them.

    Anyone know where this is.

    Computer Bob
     
  2. Rickvz

    Rickvz Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Now sure where it is in the WHM screens but the order is found in /usr/local/apache/conf/httpd.conf in the line that begins DirectoryIndex index.htm ...
     
  3. Computerbob

    Computerbob Active Member

    Joined:
    Feb 5, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    This is under "Server Configuration", "Apache Setup"you want the last option "Direct

    Just got a reply from Cpanel on this as well. It can be edit within WHM. Much easier than doing direct editing the apache file. But thanks for the info, if always nice to know where it can be edited directly.

    This is under "Server Configuration", "Apache Setup"you want the last option "Directory Index Priority"
     
  4. Rickvz

    Rickvz Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for posting back on the location in WHM. It's actually under the Service Configuration section. I know I looked in there before replying before and didn't see that option. I updated cPanel on my server right after that so maybe it is a new feature. :)
     
  5. Computerbob

    Computerbob Active Member

    Joined:
    Feb 5, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    It does seem that the order has change from prior releases of Cpanel. I was at Cpanel 10 and upgraded to Cpanel this weekend. The old order was:

    index.html index.wml index.cgi index.shtml index.jsp index.js ind
    ex.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.
    html home.htm

    The new order is:

    index.htm index.html index.shtml index.xhtml index.wml index.perl
    index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 i
    ndex.php3 index.php index.phtml default.htm default.html home.htm index.php5 Def
    ault.html Default.htm home.html

    I have had this effect a couple of clients so far. It would have been nice to know was changed in cpanel 11. Easy to fix if one new this in advance. I just spent 5 hours working this issue. Had to research the issue after being contacted by client that there web site had changed. Posting to the forumm, submitting a trouble ticket. Maybe its just me but getting this information in advance in a easy to read format would have save me lots of time.

    ComputerBob
     
  6. Rickvz

    Rickvz Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
  7. Computerbob

    Computerbob Active Member

    Joined:
    Feb 5, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    I guess my point is Cpanel changes thing and doesn't expect it to have any impack. The other theard was like my issue.

    I did search the forumm but didn't get the right search words to find anything.

    Forumm's are a great tool, but real inform from a vendor is much better. Have worked for a couple of small worldwide companies (IBM, Tandem Computers to name a few), they would never release anything without a list of all the thing that are changed so they could be reviewed prior to install.

    I have suggested this to CPanel during multiple meeting and it just seems to be on deaf ears.

    ComputerBob

    This theard can be closed now.
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The changelog reflects that this order has been updated since the build you noted the order of. Notably .php5 is now in with the .php files (so it goes .php5, .php4 then .php3 and so forth).
     
  9. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    index.htm has precendence of index.html, but only once you rebuild Apache with the newer builds.

    The feature to manage the order is nice, but cpanel should not be messing with the previous order.

    Anyone needing to rebuild Apache (after php install or something), immediately check the order of DirectoryIndex Priority to make sure it's in the order you want.
     
  10. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    You can change the order in whm under apache config
     
Loading...

Share This Page