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.

.shtml files

Discussion in 'General Discussion' started by whipworks, Dec 8, 2014.

  1. whipworks

    whipworks Well-Known Member

    Joined:
    Aug 19, 2014
    Messages:
    105
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi! Is the CPanel server capable of reading .shtml file extensions? If so, is there anything we need to activate or install for this to work? How will I know if it's capable of reading this file?

    Thanks! :)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, the following entries are added by default in the Apache configuration file:

    AddHandler server-parsed .shtml
    AddType text/html .shtml

    Thus, SHTML files should load well.

    Thank you.
     
  3. whipworks

    whipworks Well-Known Member

    Joined:
    Aug 19, 2014
    Messages:
    105
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks Michael. I'll let you know if it works :p
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not only does it work, you can also modify these to taste, and add additional error pages if you wish too, right from your own cPanel.

    Open Paper Lantern, search for, Error Pages to get going.
     
  5. whipworks

    whipworks Well-Known Member

    Joined:
    Aug 19, 2014
    Messages:
    105
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Error shows on the page

    "Directory Listing Denied
    This Virtual Directory does not allow contents to be listed."

    There's a index.shtml file.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Let's back up a moment, what is it exactly you're working on doing here?
     
  7. whipworks

    whipworks Well-Known Member

    Joined:
    Aug 19, 2014
    Messages:
    105
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Oh hey Infopro. We were uploading a new site that has .shtml extensions. We did so, but when going to the site, that error above as I mentioned shows up. Not sure if it was loaded properly or somethings wrong.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you have any entries in the .htaccess file within the account's home or public_html directory? Do you have an "index.shtml" file uploaded?

    Thank you.
     
  9. whipworks

    whipworks Well-Known Member

    Joined:
    Aug 19, 2014
    Messages:
    105
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Created a subfolder under the main account. Uploaded the files from there. There is an index.shtml on that folder. So basically it's www.domainname.com/subfolder.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you have any entries in the .htaccess file within the account's home directory, public_html directory, or the subdomain's directory?

    Thank you.
     
  11. whipworks

    whipworks Well-Known Member

    Joined:
    Aug 19, 2014
    Messages:
    105
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Working now. We reloaded the file. Dunno what happened or what was missing. Thanks guys!
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page