How install module to support SSI?

Vital

Active Member
Nov 17, 2001
37
0
306
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.
 

feanor

Well-Known Member
Aug 13, 2001
836
0
316
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.
 
S

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:
 
S

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:
 

bradandersen

Active Member
Oct 6, 2003
42
0
156
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