Re: CGI Frustration

2003-02-01 Thread Sannyasin Sivakatirswami
This is probably too obvious to ask, but are you sure you have the path 
statement at the beginning correct?

This it tripped me in the beginning. everything seemed perfectly set 
up, but the path to the engine was wrong

If you are being hosted on a virtual server, this can be an issue.

If it is an issue, just look at Apache's error logs and you may need to 
set the path to
the mc.exe to  something along the lines of :

#!/export/vhost/com/h/himalayanacademy/www/public_html/cgi-bin/mc

i.e. just look at any path in the error logs and emulate that

I had, initially wrongly assumed that I could must put

#!mc
on startup

etc.

because the engine was in the same (cgi-bin) directory as the scripts 
that were calling it... i.e. the default assumption would be use a 
relative path

but, not so... won't work.










On Wednesday, January 22, 2003, at 10:02 AM, Ken Ray wrote:

Yes, I set both the Linux executable and the script to 755. What 
shared libs
would MetaCard need?

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 1:40 PM
Subject: Re: CGI Frustration

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: CGI Frustration

2003-02-01 Thread Ken Ray
 This is probably too obvious to ask, but are you sure you have the path
 statement at the beginning correct?

Yes, and it actually is working now. I was missing a couple of library files
that MetaCard needed under Linux. The #!mc did refer to the same folder
that the CGI was running in, so it's working fine now.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: CGI Frustration - Resolved!

2003-01-23 Thread Ray Horsley
Sounds great, Ken!  I've been following this one closely.


Ray Horsley
Developer, LinkIt! Software


on 1/23/03 8:50 AM, Ken Ray at [EMAIL PROTECTED] wrote:

 Just a quick note to let you all know that my problem got resolved, and I
 have Andu to thank for it. It turned out that my ISP did not have two
 library files that MC needed to operate, and after we figured that out, Andu
 sent me the two files my ISP needed in order to get everything going.
 
 I'll be posting how I got it working at my web site in case others have
 similar frustrations in getting MC to work as a CGI.
 
 Thanks for everyone's input, and a special thanks to Andu for coming to the
 rescue!
 
 Ken Ray
 Sons of Thunder Software
 Email: [EMAIL PROTECTED]
 Web Site: http://www.sonsothunder.com/
 
 - Original Message -
 From: Ken Ray [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 22, 2003 2:48 PM
 Subject: Re: CGI Frustration
 
 
 Nevermind it was in my previous post (libXext.so.6). I Telnetted in and
 looked in my /usr/lib directory and sure enough, libXext.so.6 wasn't
 there.
 I called by ISP and they are escalating it because they normally don't
 support anything other than Perl. Sheesh!
 
 Ken Ray
 Sons of Thunder Software
 Email: [EMAIL PROTECTED]
 Web Site: http://www.sonsothunder.com/
 
 - Original Message -
 From: Ken Ray [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: Scott Raney [EMAIL PROTECTED]
 Sent: Wednesday, January 22, 2003 2:02 PM
 Subject: Re: CGI Frustration
 
 
 Yes, I set both the Linux executable and the script to 755. What shared
 libs
 would MetaCard need?
 
 Ken Ray
 Sons of Thunder Software
 Email: [EMAIL PROTECTED]
 Web Site: http://www.sonsothunder.com/
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 22, 2003 1:40 PM
 Subject: Re: CGI Frustration
 
 
 It sounds like you did it right, but that the ISP machine is missing
 some
 shared libs to run the MetaCard executable
 
 One more double check- did you make both the script and the engine
 executable? It sounds like your setup is ok (see above), but that
 would
 also
 cause problems.
 
 Brian
 
 linux: error while loading shared libraries: libXext.so.6: cannot
 open
 shared object file: No such file or directory
 
 Did I so something wrong here? Provide a wrong path?
 
 
 
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard
 
 
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard
 
 
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard
 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: CGI Frustration

2003-01-22 Thread andu


--On Wednesday, January 22, 2003 11:32:43 -0600 Ken Ray 
[EMAIL PROTECTED] wrote:

OK, I'm finally trying to get MC set up as a CGI. I have an ISP that uses
Linux, so I DL'ed the linux engine and uploaded it to my cgi-bin folder. I
set the permissions to 755, and have a simple script called test.mt that
sits in the cgi-bin folder as well, and its permissions are 755. The
script is this...

# !linux


Try #!mc and make the script executable too.



on startup
  put Hello World! into tResponse
  put Content-Type: text/html  crlf
  put Content-Length:  (the length of tResponse)  crlf  crlf
  put tResponse
end startup

... and I keep getting an internal server error 500. I tried exactly the
same thing on another ISP using BSD (with the exception of the first line
being #!mc), and got the same result. I'm convinced I'm just not calling
it properly... any ideas?

Thanks for any help anyone can provide.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard





Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: CGI Frustration

2003-01-22 Thread Yennie
Ken,

Can you run the script from the command line?
That is, can you connect via Telnet, ssh, etc, and run something like:
 ./linux test.mc

?

If so, then it probably has something to do with the ISP setup / Apache configuration (assuming they use Apache). If not, then it may be your setup.

Some tidbits that *could* help (or at least narrow down the problem):

1) Try putting a full path to the mc engine.
2) Try changing the extension to ".cgi". The ISP configuration could possibly only accept cgis with certain extensions.

HTH.
Brian

OK, I'm finally trying to get MC set up as a CGI. I have an ISP that uses
Linux, so I DL'ed the linux engine and uploaded it to my cgi-bin folder. I
set the permissions to 755, and have a simple script called "test.mt" that
sits in the cgi-bin folder as well, and its permissions are 755. The script
is this...

#!linux

on startup
 put "Hello World!" into tResponse
 put "Content-Type: text/HTML" crlf
 put "Content-Length:" (the length of tResponse) crlf crlf
 put tResponse
end startup

... and I keep getting an internal server error 500. I tried exactly the
same thing on another ISP using BSD (with the exception of the first line
being "#!mc"), and got the same result. I'm convinced I'm just not calling
it properly... any ideas?

Thanks for any help anyone can provide.



Re: CGI Frustration

2003-01-22 Thread Ken Ray
 # !linux

 Try #!mc and make the script executable too.

The script's already executable (755), but the name of the executable for
linux is just called linux. I tried it, though, and got the same error.

Thanks anway,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: CGI Frustration

2003-01-22 Thread Ken Ray
 Can you run the script from the command line?
 That is, can you connect via Telnet, ssh, etc, and run something like:
  ./linux test.mc

Well, I changed the name of the script to simple.cgi, connected via Telnet
(I'm not so good at Telnet so tell me if I'm doing something wrong), went to
the cgi-bin directory (did a dir just to make sure the files were there)
and executed both:

  ./linux simple.cgi

and

  linux simple.cgi

and got this error:

  linux: error while loading shared libraries: libXext.so.6: cannot open
shared object file: No such file or directory

Did I so something wrong here? Provide a wrong path?

 1) Try putting a full path to the mc engine.

Well, it's at an ISP, where it's basically:

  IP address/www/cgi-bin/simple.cgi

So, would the full path be:

  #!/www/cgi-bin/simple.cgi?

Thanks,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: CGI Frustration

2003-01-22 Thread andu


--On Wednesday, January 22, 2003 12:11:01 -0600 Ken Ray 
[EMAIL PROTECTED] wrote:

# !linux

Try #!mc and make the script executable too.


The script's already executable (755), but the name of the executable for
linux is just called linux. I tried it, though, and got the same error.



Are you sure that you gunzip-ed the mc.gz out of the folder named linux 
after you un-tar-ed the linux.tar file? You should obtain a mc executable.


Thanks anway,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard





Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard