Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    252

    Default .shtml not being parsed

    We have a client who is trying to use a SSI on a page named test.shtml. The problem is the server is not parsing the SSI inside of that file. If you view the source you see the SSI.

    Has anyone run into this problem? What on the server tells the web server to parse .shtml pages.

    Note: SSIs and .shtml pages work fine on every other site.

    Thanks
    Mike
    Last edited by Sash; 03-23-2003 at 05:22 PM.

  2. #2
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    Can you post an example of the problem code?
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    252

    Default

    Sure:

    BEGIN
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Quick Tips</title>
    <LINK REL="stylesheet" TYPE="text/css" HREF="basic.css">
    </head>

    <body>
    <h3>Quick Tip</h3>
    <!-- #exec cmd="cgi-sys/randhtml.cgi" -->

    <br><br>
    <center><a href="javascript:window.close();" class="mainlinks">Close Window</a>
    <br>
    <br>
    </body>
    </html>
    END

    Thanks,
    Mike

  4. #4
    Member
    Join Date
    Sep 2002
    Posts
    580

    Default

    Same problem here for:

    <!-- #include file = "file.extension" -->

  5. #5
    Member
    Join Date
    Apr 2002
    Posts
    86

    Default

    Originally posted by NNNils
    Same problem here for:

    <!-- #include file = "file.extension" -->
    I've never put a space between the <!-- and the # sign, but....

    vi /usr/local/apache/conf/httpd.conf

    and look for: AddHandler server-parsed .shtml

    You can also put that in their .htaccess to see if thats the problem. (I guess the latter is the easier and quicker of the two).

  6. #6
    Member
    Join Date
    Sep 2002
    Posts
    580

    Default

    Originally posted by WebmastTroy


    vi /usr/local/apache/conf/httpd.conf

    and look for: AddHandler server-parsed .shtml

    It's there.

    Using pico and ctrl+w to find it instead of vi.

  7. #7
    Member
    Join Date
    Apr 2002
    Posts
    86

    Default

    Originally posted by NNNils
    It's there.

    Using pico and ctrl+w to find it instead of vi.
    cat /home/[username]/public_html/.htaccess

    There has to be something throwing it off. Is CGI enabled on the account?

    You might throw "AddHandler server-parsed .shtml" into their .htaccess file (see above) to make sure everythings enabled for them.

  8. #8
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    Originally posted by Sash
    <!-- #exec cmd="cgi-sys/randhtml.cgi" -->
    Remove the space between <!-- and the #

  9. #9
    Member
    Join Date
    Sep 2002
    Posts
    580

    Default

    Contents:

    AddHandler server-parsed .shtm
    AddHandler server-parsed .asp

    I have added:

    AddHandler server-parsed .shtml

  10. #10
    Member
    Join Date
    Feb 2003
    Posts
    252

    Default

    Originally posted by Juanra
    Remove the space between <!-- and the #
    That is what fixed the problem for us.

    Mike

  11. #11
    Registered User
    Join Date
    May 2003
    Posts
    1

    Default

    Answering on behalf of Nils: removing the space solved the problem for us too...

    Thanx guys!

    JM.

  12. #12
    Member
    Join Date
    Sep 2002
    Posts
    580

    Default

    Solved it for us too, thanks.

  13. #13
    Member
    Join Date
    Jun 2003
    Posts
    35

    Default SSI

    I cannot get any SSI with cmd= to work. Here is a very simple example:

    <!--#exec cmd="/usr/bin/who" -->

    Any ideas why?

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:

  14. #14
    sv1
    sv1 is offline
    Member
    Join Date
    Aug 2003
    Posts
    140

    Default

    I also cannot get SSI to work now. Was working fine, updated cpanel which I belive updates Apache? And now ssi will not work. I have checked httpd.conf and it looks correct.

    <!--#echo var="REMOTE_ADDR"-->

    I am running pretty much the same Apache build on a server which is using DirectAdmin and I do not have the SSI issues.

    Anyone?
    Last edited by sv1; 06-12-2004 at 06:45 AM.

  15. #15
    sv1
    sv1 is offline
    Member
    Join Date
    Aug 2003
    Posts
    140

    Default

    running /scripts/easyapache
    #6
    unckeck perl mod

    resolved the issue for me

Similar Threads & Tags
Similar threads

  1. new server - ssi not being parsed - where to look?
    By boatdesign in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-27-2009, 02:20 AM
  2. x-server-parsed-html
    By erinspice in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-12-2008, 04:01 AM
  3. Html not parsed to BBCode
    By bharan_n in forum New User Questions
    Replies: 0
    Last Post: 09-14-2008, 06:52 AM
  4. ssi not being parsed
    By iclayton in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-07-2004, 12:39 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube