Error 500 (broken pipe)

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
boštjan
-


Joined: 03 Apr 2008
Posts: 23

PostPosted: Wed Apr 09, 2008 1:08 pm    Post subject: Error 500 (broken pipe) Reply with quote

Hello!

I have a problem and would appreciate any help ;
On my site, I have set SSI exec.cgi for my "file.exe". When started, it executes it, but then it gives me an Error 500 (internal server error) - in my cgi.log says a "broken pipe" occured. The SSI command is set right below the <body> tag.
Anyone? Thanks!

Boštjan
Back to top View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 295
Location: Chicago, IL

PostPosted: Wed Apr 09, 2008 2:39 pm    Post subject: Reply with quote

You may consider listing the section of code that is suspect in causing this error.

I generally use PHP, so I might not be able to help much, but I'd look over the URI calling for the page (make sure the ?'s and &'s are all in the right spots, the ='s are present, etc), also make sure the syntax on the actual CGI page that you're trying to load is correct too.
_________________
Portfolio: Robert Lerner
Back to top View user's profile Send private message Visit poster's website
boštjan
-


Joined: 03 Apr 2008
Posts: 23

PostPosted: Sat Apr 12, 2008 3:29 pm    Post subject: Error 500 (broken pipe) Reply with quote

Hi!

I am proud owner of brand new Abyss X2 - it is great, but the SSI is giving me a headache...
Well, here is the code; its just a sample, which I used for training with SSI.
When reports error 500, it says that is the problem in exec directive?
Please, help anyone!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MYSITE</title>
<!-- Created with an unregistered copy of Dynamic HTML WYSIWYG Editor -->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="GENERATOR" content="Dynamic HTML Editor v.4.0 - http://www.hexagora.com">


<style type="text/css">
img {behavior: url("png32.htc");}
input {behavior: url("png32.htc");}
body {margin: 0px; padding: 0px;}
.verdana100FFFFFFt {font-family: Verdana, Arial, Helvetica, serif; font-size: 13px; color: #000000; text-decoration: none;}

</style>

</head>
<!--#exec cgi="myfile.exe" -->
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" alink="#FF0000" vlink="#800080">
<div id="ldheGeneric1" style="position: absolute; left: 89px; top: 93px; width: 844px; height: 443px;" align="left">
<iframe id="Generic1" name="Generic1" src="myfile.exe" width="844" height="443" frameborder="0" marginwidth="0" marginheight="0"></iframe>
</div>
<img src="hotgirl.JPG" width="300" height="400" border="2" align="top">
Back to top View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 295
Location: Chicago, IL

PostPosted: Sat Apr 12, 2008 3:35 pm    Post subject: Reply with quote

^Him wrote:
<!--#exec cgi="myfile.exe" -->


Like I said, I'm not great with CGI, just PHP, do you need a semicolon at the end of the .exe";

If anything, you can call it with a PHP command (if you're running PHP on there too)

PHP.net EXEC page

Sorry I can't be more of a help...
_________________
Portfolio: Robert Lerner
Back to top View user's profile Send private message Visit poster's website
boštjan
-


Joined: 03 Apr 2008
Posts: 23

PostPosted: Sat Apr 12, 2008 4:56 pm    Post subject: Error 500 (broken pipe) Reply with quote

Hi,

No, I dont need a semicolon nor am I running php, so there will have to be another way to do it...
But thanks a lot for trying!

Boštjan
Back to top View user's profile Send private message
canoedf
-


Joined: 25 Oct 2004
Posts: 13
Location: Colorado

PostPosted: Mon Apr 14, 2008 12:58 am    Post subject: Abyss SSI works Reply with quote

try without the .EXE extension - this works for me with X1 running under XP

I stick the exec call within < pre > tags so the results are pretty....

I am using Abyss to do maintenance for a data center and it is working fine.

good luck.

Dan
_________________
Dan
Back to top View user's profile Send private message
boštjan
-


Joined: 03 Apr 2008
Posts: 23

PostPosted: Mon Apr 14, 2008 8:55 am    Post subject: Error 500 (Internal server error)? Reply with quote

Hello,

Thanks for an answer, but I am not so advanced as you, so I have to ask;
Where are these <pre> tags?
And I tried without .exe ext., but no luck..

Did you mean like this?

<!--#exec cgi="myfile" -->

No matter, what I do, it gives me "error in directive line 1" ??

Help?

Boštjan
Back to top View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 295
Location: Chicago, IL

PostPosted: Mon Apr 14, 2008 1:31 pm    Post subject: Reply with quote

<pre> and </pre> would be before and after your CGI call.

Code:

<pre>
<!--#exec cgi="myfile.exe" -->
</pre>

_________________
Portfolio: Robert Lerner
Back to top View user's profile Send private message Visit poster's website
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Tue Apr 15, 2008 2:32 am    Post subject: Reply with quote

Does the file exist in the same directory as your page that you're calling CGI directives from?
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
boštjan
-


Joined: 03 Apr 2008
Posts: 23

PostPosted: Tue Apr 15, 2008 6:36 am    Post subject: Error 500 (broken pipe) Reply with quote

Hello,

Well, I think that the problem is solved; the file is in cgi-bin, but I have done this:

<body>
<pre>
<!--#exec cmd="Path to myfile + myfile.exe-->
</pre>
</body>

And it worked!!

So, I would like to thank everyone for their help, especially "Toasty" !
But, I am sure, that I would need help in the future, so have a nice day and...
Abyss rocks!!!

Boštjan
Back to top View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 295
Location: Chicago, IL

PostPosted: Tue Apr 15, 2008 6:04 pm    Post subject: Reply with quote

You're welcome.

Any other questions, feel free to ask!
_________________
Portfolio: Robert Lerner
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI 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