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.

How install module to support SSI?

Discussion in 'General Discussion' started by hkewell, Oct 4, 2002.

  1. hkewell

    hkewell Well-Known Member

    Joined:
    May 17, 2002
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    0
    Please tell me.
    Thanks
     
  2. Skm74

    Skm74 Well-Known Member

    Joined:
    Sep 28, 2002
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Not

    It´s not enabled on my box
     
  3. Vital

    Vital Active Member

    Joined:
    Nov 17, 2001
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    It should be, just make sure you are using .shtml files for SSI. If it's still doesn't help, then it's your config.. I'll tell you, what to fix.
     
  4. Skm74

    Skm74 Well-Known Member

    Joined:
    Sep 28, 2002
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Tell me

    Tell me what to do then.
     
  5. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    Are you sure that server-side scripting is enabled for shtml files in your apache global configuration?

    Search for the words &server-parsed& in your apache configuration and make sure that the file extensions you want to use with SSI are added there, and then make sure you restart apache afterwards if you make changes to it.
     
  6. SACHIN

    SACHIN Guest

    .shtml

    Hello,

    we have checked httpd.conf file we found following line but still we are unable to access .sthml files.

    AddType text/html .shtml
    AddHandler server-parsed .shtml
    do you have any test .sthml file?


    waiting for reply...

    :confused:
     
  7. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Do custom error pages work on your server? Create one in CPANEL to test it. The error pages are .shtml pages.
     
  8. SACHIN

    SACHIN Guest

    .shtml page erorr

    Hello,


    we have set custome error page for one client
    1)logged in cpanel
    2)click on custome error page
    3)select 404 error page
    4)enter in text bos test page for 404
    5)enter domain name in broswr like http://domainname.com/jhj.html but did not get custome error page.
    6)i tried to access page like http://domainname.com/404.shtml but unable to access

    it means shtml is not working

    :confused:
     
  9. bradandersen

    bradandersen Active Member

    Joined:
    Oct 6, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    SSIs

    Hello,

    I was having a problem where it was not parsing and just showing <!--#echo var="SERVER_NAME"--> in the HTML page. Drove me crazy for a while then I re-edited it and it worked. Like magic....

    However, I also:

    /scripts/rebuildhttpdconf
    ....
    restarted the server (because numerous Apache restarts didn't solve it)

    I wanted a Future Home of.., Coming Soon..., etc. for my new websites. I have these scritps to offer that you can place in your /root/cpanel3-skel/public_html directories. Remember based on this line out of /etc/httpd/httpd.conf SHTML files will open before PHP:

    <IfModule mod_dir.c>
    DirectoryIndex 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 default.html home.htm
    </IfModule>


    index.shtml:
    <center>
    <h2>Coming Soon!</h2>
    <h1>
    The future home of
    <!--#echo var="SERVER_NAME"-->
    </h1>
    <p>
    Another great site hosted by<p>
    <img src="http://YOURDOMAINHERE/images/logo.gif">
    </center>

    and in case you just can't get SHTML to work for you:

    index.php:
    <center>
    <h2>Coming Soon!</h2>
    <h1>
    The future home of
    <?php
    echo $_SERVER['SERVER_NAME'];
    ?>
    </h1>
    <p>
    Another great site hosted by<p>
    <img src="http://YOURDOMAINHERE/images/logo.gif">
    </center>

    Good luck,
    Brad
     
Loading...

Share This Page