SSI Problems

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
SlowPaddle
-


Joined: 01 Jul 2007
Posts: 5

PostPosted: Sun Jul 01, 2007 11:31 pm    Post subject: SSI Problems Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3714
Location: USA, GA

PostPosted: Mon Jul 02, 2007 12:36 am    Post subject: Reply with quote

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";

_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
SlowPaddle
-


Joined: 01 Jul 2007
Posts: 5

PostPosted: Mon Jul 02, 2007 1:09 am    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jul 02, 2007 11:46 am    Post subject: Reply with quote

SlowPaddle,

Does browsing http://yoursite/cgi-bin/test.cgi generate a page with no errors?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
SlowPaddle
-


Joined: 01 Jul 2007
Posts: 5

PostPosted: Mon Jul 02, 2007 3:03 pm    Post subject: Reply with quote

No errors at all. It prints the word hello.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jul 02, 2007 7:00 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
SlowPaddle
-


Joined: 01 Jul 2007
Posts: 5

PostPosted: Mon Jul 02, 2007 7:45 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jul 05, 2007 4:14 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
SlowPaddle
-


Joined: 01 Jul 2007
Posts: 5

PostPosted: Tue Jul 24, 2007 2:45 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jul 25, 2007 2:27 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group