Frequently Asked Questions

Help Center Search

Can I use DOS line endings with my Linux hosting account?

Print this Article
Comment on this Article
Last Updated: February 19, 2007 9:32 AM

Text files that are created with DOS line endings use the combination of a carriage return and line feed "rn" to denote the end of a line. Unix line endings consist of just a carriage return "r". Script files uploaded to your Linux shared hosting account require Unix line endings for the shell to correctly determine the interpreter. The errors this may cause include the following:

Could not execute script
execve() for program failed: No such file or directory
Premature end of script headers

Most text editors allow you to specify a line ending convention. Uploading text files in ASCII mode will also preseve Unix line endings and convert DOS line endings to Unix, where possible.