Help Setting Up SSI

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Help Setting Up SSI

Postby Draksis314 » 06. October 2010 00:29

I need some help setting up SSI on my 64 bit Win 7 computer running XAMPP.

My first issue is that when I rename my homepage index.shtml (from index.html), my browser gives me the "[an error occurred while processing this directive]" message where the SSI should go. I know it's not an issue with my coding, since I sent all of my files to a friend that also uses XAMPP, and the SSI worked fine on his server. Is there any edit I could make that makes this issue go away?

My second issue is that I am developing a website that utilizes SSI on almost every page. Therefore, I do not want to change all of my website extensions to .shtml. I was looking online, but none of the help I found was able to help me be able to parse .html files as well as .shtml file for SSI. Can somebody help me do this?

Thanks in advance!
Draksis314
 
Posts: 6
Joined: 06. October 2010 00:21

Re: Help Setting Up SSI

Postby JonB » 06. October 2010 01:49

AFAIK - XAMMP defaults to SSI working (and to make sure I just tested with a clean install)

the "It Works" index.html page now says:

It works!

index.shtml

So - First, I guess we should check if SSI's are enabled

go to the XAMPP page http://localhost/xampp and click Status - does SSI show as Activated?

if not check this line in \xampp\apache\conf\httpd.conf to make sure its not commented out.

LoadModule include_module modules/mod_include.so

Also check this section to make sure Includes is there.

<Directory "C:/xampp-new-folder/htdocs">
...
Options Indexes FollowSymLinks Includes ExecCGI
...

</Directory>

Just another thought? do you have either a .htacess file in /htdocs OR are you using a vhost?

As for your seconf question, the Xbit hack probably won't work on Windows, so "I don't know!"

http://www.zytrax.com/tech/web/ssi.htm#overview

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Help Setting Up SSI

Postby Draksis314 » 06. October 2010 02:27

I tried what you said, and everything was as it should be. Perhaps I should add that the SSI had worked for a day or so before it started doing this. After that, I did a clean reinstall of XAMPP, and the problem still appears.
Draksis314
 
Posts: 6
Joined: 06. October 2010 00:21

Re: Help Setting Up SSI

Postby JonB » 06. October 2010 03:52

Its pretty strict code, perhaps an editign error broke it.

Did it stop working AFTER you sent the code to your friend? - prolly a syntax error. Have the friend send back the working files.

Good luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Help Setting Up SSI

Postby Draksis314 » 07. October 2010 23:30

My friend has sent me all of his files. They work fine, so I'm pretty sure that it's a server config problem. After all, the SSI is just one line in the HTML.
Draksis314
 
Posts: 6
Joined: 06. October 2010 00:21

Re: Help Setting Up SSI

Postby JonB » 08. October 2010 00:14

They work on your server? :?:

you also never answered the question "does SSI show as activated" on the XAMPP status page.

:?:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Help Setting Up SSI

Postby Draksis314 » 09. October 2010 00:26

Yes, it showed up as activated.

No, they don't work on my server. I should have clarified, sorry: They work fine on my friend's server, but not on mine.
Draksis314
 
Posts: 6
Joined: 06. October 2010 00:21

Re: Help Setting Up SSI

Postby Draksis314 » 09. October 2010 00:58

Update: I installed normal Apache (not XAMPP), and I get the same trouble. :roll:
Draksis314
 
Posts: 6
Joined: 06. October 2010 00:21

Re: Help Setting Up SSI

Postby JonB » 09. October 2010 11:39

Well - I guess its NOT a server issue (as I have thought all along).

why don't you send me a PM, and we will see what we can do about figuring this out?

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Help Setting Up SSI

Postby Draksis314 » 09. October 2010 16:49

OK, I figured it out. It was a really stupid thing... :oops:

The SSI reference in my HTML started with a "/". I didn't know that that referenced to the server root directory, and that's where my friend put his files. Thanks for the help, though!
Draksis314
 
Posts: 6
Joined: 06. October 2010 00:21


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 136 guests