View previous topic :: View next topic |
Author |
Message |
SlowPaddle -
Joined: 01 Jul 2007 Posts: 5
|
Posted: Sun Jul 01, 2007 11:31 pm Post subject: SSI Problems |
|
|
I've installed Abyss on a machine to test web designs before uploading them to my online server. But I'm having a bit of a problem with the SSI's.
I have a test cgi script in the cgi-bin subdirectory that runs fine if I am browsing the cgi-bin directory. But when I try to execute it from the index.html page it doesn't show up.
I'm using the <!-- exec cgi="cgi-bin/test.cgi" --> command.
The test.cgi file contains:
Code: | #!perl
print "Context-type:text/html\n\n";
print "hello"
exit; |
My settings:
SSI Parameters
Enable SSI Processing = Yes
Process "Exec cmd" Directives = Yes
Associated Extensions = shtml, shtm, stm, html
Virtual Path = \cgi-bin
Scripting Parameters
Interface = CGI/ISAPI
Interpreter = d:\perl\bin\perl.exe
Associated Extensions = cgi
I've tried everything I've read to configure the server to run SSI's but I'm not having much luck.
Any help would be appreciated.
Thanks |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Jul 02, 2007 12:36 am Post subject: |
|
|
The SSI code is incorrect. Use this instead:
Code: | <!-- #exec cgi="/cgi-bin/test.cgi" --> |
P.S. Your Perl code has a syntax error. Here's the correct Perl code.
Code: | #!perl
print "Content-Type: text/html\n\n";
print "hello"; |
|
|
Back to top |
|
|
SlowPaddle -
Joined: 01 Jul 2007 Posts: 5
|
Posted: Mon Jul 02, 2007 1:09 am Post subject: |
|
|
I checked the cgi code and it was correct. I must of mistyped it in the thread. Sorry.
I added the foward slash to the SSI command but it didn't make any difference.
Thanks for trying to help though. It's appreciated.
SP |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
|
SlowPaddle -
Joined: 01 Jul 2007 Posts: 5
|
Posted: Mon Jul 02, 2007 3:03 pm Post subject: |
|
|
No errors at all. It prints the word hello. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Jul 02, 2007 7:00 pm Post subject: |
|
|
SlowPaddle wrote: | No errors at all. It prints the word hello. |
Does changing the SSI directive to:
Code: | <!-- #include virtual="/cgi-bin/test.cgi" --> |
solve the problem? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
SlowPaddle -
Joined: 01 Jul 2007 Posts: 5
|
Posted: Mon Jul 02, 2007 7:45 pm Post subject: |
|
|
I changed the directive and lo and behold it works.
Thank you very much Aprelium.
Checked out the same thing on my online server and it works there too. But the <!-- #exec cgi="/cgi-bin/test.cgi" --> directive worked on the online server as well.
Any idea why the #Exec directive wouldn't work on my Abyss server? Not that it matters much. Just call me curious.
SP |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jul 05, 2007 4:14 pm Post subject: |
|
|
SlowPaddle wrote: | Any idea why the #Exec directive wouldn't work on my Abyss server? Not that it matters much. Just call me curious. |
We'll check that and report our findings here. If we forget to do so, please "remind" us by posting a new message here. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
SlowPaddle -
Joined: 01 Jul 2007 Posts: 5
|
Posted: Tue Jul 24, 2007 2:45 pm Post subject: |
|
|
aprelium wrote: | We'll check that and report our findings here. If we forget to do so, please "remind" us by posting a new message here. |
Any word yet on your findings?
Thanks. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jul 25, 2007 2:27 pm Post subject: |
|
|
SlowPaddle,
Thank you for the reminder.
<!-- #exec cgi="/cgi-bin/test.cgi" --> worked fine for us using the default configuration. We do not know why it failed when you tested it. You have probably entered <!-- exec cgi="cgi-bin/test.cgi" --> (note the missing # and the absence of a leading slash in the path). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|