That's interesting as both tutorials are very similar and you are the first to report this.
I remember seeing this way back in ZPanel but since that site/forum is gone, I can't check there
If you edited any files using a Windows editor (wordpad, notepad, etc.), then uploaded them to your Ubuntu server this can happen.
I suggest using notepad++ as your default editor in Windows.
Quoted from: http://stackoverflow.com/questions/15020...-each-line
Although, this doesn't explain why one works and not the other...
I remember seeing this way back in ZPanel but since that site/forum is gone, I can't check there
If you edited any files using a Windows editor (wordpad, notepad, etc.), then uploaded them to your Ubuntu server this can happen.
I suggest using notepad++ as your default editor in Windows.
Quoted from: http://stackoverflow.com/questions/15020...-each-line
Quote:Did you create this file on Windows machine and then transferred it on unix/linux machine? End of line is interpreted differently in MS-DOS and Linux/Unix environments. On MS-DOS, end of line is indicated by new line character and carriage return, whereas on Unix, new line feed indicates end of line. This causes ^M characters, if you're not careful about the transfer mode between MS-DOS and Unix/Linux
Although, this doesn't explain why one works and not the other...