Uploading a script in ASCII mode

E

ereuben

I am trying to upload a script in my cgi-bin and when I try to open it in IE7
I get 500
Internal Server Error. I contacted my host and their reply was, You should upload scripts in ASCII mode, because Windows and Linux computers have some character differences.

I have no idea on how to do this. Can someone help!
 
S

Steve Easton

How exactly are you trying to upload it??
By publishing it with FrontPage??

If so try this:
Run regedit and go here:
HKEY_CURRENT_USER\Software\Microsoft\FrontPage
in the right panel you will see a value name ASCIIList, right click it and select modify and if it doesn't already
exist, add the extension of your cgi file to the list.
Make sure you add a . before the extension.
Close and reopen FrontPage.

Or, if your server account has a control panel, use it to upload the file to the cgi bin on the server.


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
A

Andrew Murray

You may need to use an FTP program (not Frontpage FTP) to change file
permissions with the CHMOD (contraction of CH[aracter] MOD[ify]).

The '500 Internal Server Error' could be any numer of things, contact your
host to access the error logs. Generally though, a couple of things to try

1) it depends on the script you're using - if using Perl/CGI scripts, you
need to check a few things like what the file permissions should be - common
settings are 666 and 755. Use an FTP program like CuteFTP to change the
file permissions (look up help in that application to find out how).

2) Also your "path to perl" needs to be correct in the cgi script file (this
should be the top most line of the file). Open the file only in Notepad,
else you risk corrupting it.

3) It could be that the file was uploaded in binary rather than ascii, as
your host has already told you, in which case you need to reupload via an
FTP program such as CuteFTP and choose the correct file mode i.e. Ascii Text
not binary.



The path-to-perl can be gained from your host, or they may have already
supplied that info. it may also be available through your host control
panel or in the help files etc.
 
R

Ronx

In FP2003 you can add the extension in Tools->Options - FTP tag. You do
not need the dot here.

On some servers you may also need to change the permissions on the
uploaded file(s). This will require an FTP program, or possibly can be
done from your hosting Control Panel.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top