When changing any line of PHP, it gives 500 error (server)

3

Colleagues.

I have serious problems with a particular server, from which only these errors happen. We have a system from which we change the directory and all the links are working perfectly and are in the root directory of the server. We've changed from 2016 to 2017, but for two weeks now, any line we've moved or even commented on, gives 500 a bug, to the point where we exclude all code and leave only:

<?php
echo "OK";
?>

After numerous searches, I came across a forum where you asked to open Notepad ++, view all the characters and see if the code appears LF, and you can also see LF and CR. The pages in the old directory appear like this:

Andinthenewdirectorywherewemigratedthesystemandisgivingthisproblem:

How can I fix this? The server where the files are allocated is Linux.

    
asked by anonymous 09.04.2017 / 22:56

1 answer

5

This CR means carriage return and LF means line feed , LF is used to generate "new lines" the CR until the Mac 9 was used as line break, but from 10 ( Mac OS X ) started using LF , systems internally use only LF , only the Windows

10.04.2017 / 16:41