This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Webmaster forum > July 2005 > CGI Error Help
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Boy Meets Web 2005-07-25, 4:22 am |
| Hey,
I need some help.
I sent an email to a software company that I purchased a cgi script from.
They sent me a new cgi script and told me to simply replace the
old cgi script on my server with the new one.
So - I simply opened up WS_FTP9.0 --- and del the old cgi script from
the right pane - and transfered up the new cgi script from the left pane.
Fine! That was easy.
However, When I fo to my site and try to execute the script - I get CGI
ERROR!
I'm not totally sure on this - but I think it's because I am suppose to
transfer up cgi files differently using FTP - than I would with my ordinary
graphics, text and html files.
So, I went back to WS_FTP - but I seee no definite instructions on how to do
this. Would anyone be able to give me step-by-step instructions
on just how I am suppose to properly upload cgi files using WS_FTP 9.0?
Thans so Much in Advance!!!
Boy
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
| |
| mbstevens 2005-07-25, 4:23 am |
| Boy Meets Web wrote:
> Hey,
>
> I need some help.
>
> I sent an email to a software company that I purchased a cgi script from.
> They sent me a new cgi script and told me to simply replace the
> old cgi script on my server with the new one.
>
> So - I simply opened up WS_FTP9.0 --- and del the old cgi script from
> the right pane - and transfered up the new cgi script from the left pane.
> Fine! That was easy.
>
> However, When I fo to my site and try to execute the script - I get CGI
> ERROR!
>
> I'm not totally sure on this - but I think it's because I am suppose to
> transfer up cgi files differently using FTP - than I would with my ordinary
> graphics, text and html files.
>
> So, I went back to WS_FTP - but I seee no definite instructions on how to do
> this. Would anyone be able to give me step-by-step instructions
> on just how I am suppose to properly upload cgi files using WS_FTP 9.0?
Check file permissions carefully. Check that the CGI files you transfer
are going into the directory specified for that purpose by your
sysadmin. Check that any file that gets written-to has proper
permissions. I assume your scripts are in Perl?? Check that the cgi
scripts have the right path to your PERL interpreter/compiler at the
very top of each executable file. Maybe...
#!/usr/bin/perl
#!/usr/local/bin/perl
#!/bin/perl
....are just some of the possibilities of where your PERL is. Just call
'which perl' at the command line to find out the proper path.
No matter what language the script is for, the #! (shebang) line at the
top of each script file should be referencing the proper location of the
file.
--
mbstevens
http://www.mbstevens.com/
| |
|
|
"Boy Meets Web" <boywantsnospam@nospam.com> wrote in message
news:42e467da$1_2@spool9-east.superfeed.net...
> Hey,
>
> I need some help.
>
> I sent an email to a software company that I purchased a cgi script from.
> They sent me a new cgi script and told me to simply replace the
> old cgi script on my server with the new one.
>
> So - I simply opened up WS_FTP9.0 --- and del the old cgi script from
> the right pane - and transfered up the new cgi script from the left pane.
> Fine! That was easy.
>
> However, When I fo to my site and try to execute the script - I get CGI
> ERROR!
>
> I'm not totally sure on this - but I think it's because I am suppose to
> transfer up cgi files differently using FTP - than I would with my
> ordinary graphics, text and html files.
>
> So, I went back to WS_FTP - but I seee no definite instructions on how to
> do this. Would anyone be able to give me step-by-step instructions
> on just how I am suppose to properly upload cgi files using WS_FTP 9.0?
>
> Thans so Much in Advance!!!
>
> Boy
I once uploaded some CGI files to my server using WSFTP_LE and had the
Binary box ticked instead of the ASCII box. The script didn't work.
I then re-uploaded them with the ASCII box ticked and the script worked.
Hope that works for you, good luck.
Kerry
| |
| Matt-the-Hoople 2005-07-25, 7:58 pm |
| after careful consideration, Boy Meets Web wrote in alt.www.webmaster
>
> So, I went back to WS_FTP - but I seee no definite instructions on how
> to do this. Would anyone be able to give me step-by-step instructions
> on just how I am suppose to properly upload cgi files using WS_FTP
> 9.0?
1. check that your /path/to/perl is correct
2. make sure to upload your script in ASCII format, not binary
3. check that you have set file permissions correctly
That should do it for you.
cheers
- M
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|