SRemote file transfer mode

When I ftp a cgi script to the server (Save to Location) it is transferred in binary mode, and raises a 500 error when run. Once I run dos2unix against the file on the server, it executes okay. Is there a setting somewhere that I can use to specify ascii transfer?

Is the file extension of the file one of pl, pm, cgi? If not, then edit the file DefaultModes.xml in the same folder you installed optiperl, to include the file extension of the file.

It's been a while, but I've finally tracked down the problem. vsFTPd, the FTP server that is now standard with Red Hat, will by default transfer in binary, even when it says that it is in ascii mode. To get around this, you'll need to set ascii_upload_enable and ascii_download_enable to YES in /etc/vsftpd.conf

25.04.2003. 10:41

This article hasn't been commented yet.

Write a comment




8 + 6 =