Closed Thread Icon

Topic awaiting preservation: Simple SSI Question Pages that link to <a href="https://ozoneasylum.com/backlink?for=13100" title="Pages that link to Topic awaiting preservation: Simple SSI Question" rel="nofollow" >Topic awaiting preservation: Simple SSI Question\

 
Author Thread
Nimraw
Paranoid (IV) Inmate

From: Styx
Insane since: Sep 2000

posted posted 03-20-2004 19:16

** Oh wow.. so this is what this part of the asylum looks like... **


I'm just trying to understand SSI's for my first site in years.
Only problem is that I can't get hold of the guy that handles my server, so I can't verify if he really activated SSI on it.

So far nothing SSI-related is working, but since I'm a novice I do not know whether it's me or the server that is to blame.

Read about SSI at the Gurus and several other places, but I'm still lost.

I tested with this snippet cut and pasted from DL's tut at GN. HOwever I have yet to understand if I need to add something else to make it work.

code:
<html>
<body>
<!--#config timefmt="%A, %B %d, %Y - %I:%M:%S"-->
<!--#echo var="DATE_GMT"-->
</body>
</html>



When I try out this on my server I get a blank page.

My question; Is this a valid snippet that ought to present something, or am I completely code-retarded?
(BTW, is there a clientside way to verify whether SSI is activated or not?)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 03-20-2004 20:24

Nimraw: Are SSI enabled on your server ?

Check the Apache Tutorial: Introduction to Server Side Includes. Make sure you have the Options +Includes and AddType text/html .shtml and AddHandler server-parsed .shtml directives on. And use the .shtml extension. ( at least in your first tests ). At least, after doing this, it workerd on my local server

Cheers



[This message has been edited by poi (edited 03-20-2004).]

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 03-20-2004 20:45

Odds are you don't have SSI enabled. Usually SSI will error if there's something wrong.

Check the source of that page and if you still see the SSI call in comments then SSI isn't being parsed.



.:[ Never resist a perfect moment ]:.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 03-20-2004 20:50

First thing to double check is whether you are using the .shtml extension.

If so, the rest is up to the server admin activating things properly.

Nimraw
Paranoid (IV) Inmate

From: Styx
Insane since: Sep 2000

posted posted 03-20-2004 22:47

Thanks for the tips. I'm trying to get hold of my slacking admin friend and get him to check things out.


I tried using both .html and .shtml and still the same result.
When viewing the source, I can see that the SSI is not parsed.

I found out something weird with the server though.
If I use the php-syntax for calling the SSI and change the .html suffix to .php everything worked just fine.

Are there several ways to activate SSI in Apache?
(yes, I'm a dumb user when it comes to things like this)


silence
Maniac (V) Inmate

From: soon to be "the land down under"
Insane since: Jan 2001

posted posted 03-21-2004 04:53
quote:
If I use the php-syntax for calling the SSI and change the .html suffix to .php everything worked just fine.



That just means that php is installed on the server since php is actually handling the includes.

Good luck getting in touch with the server admin, since he/she will need to enable SSI for you.

Nimraw
Paranoid (IV) Inmate

From: Styx
Insane since: Sep 2000

posted posted 03-22-2004 15:47

<edit>
Nevermind. Now they've figured it out. Apparently they put parts of the code in the wrong place as well..

Thanks all
</edit>

[This message has been edited by Nimraw (edited 03-23-2004).]

« BackwardsOnwards »

Show Forum Drop Down Menu