File Permission 755 and use LF line separator for Linux

For source code files written in Windows OS and to executed on Linux, you have to make sure the separator used is “LF” and not “CRLF”. You can easily change this at the bottom right of popular IDEs such as VS code and Pycharm.

Next, you have to ensure that you give the appropriate “execute” permission to the file that you uploded to your server. The file permission for that source file must be set to 755. This can be done by right clicking on the file and selecting “Permissions”, else you could have problems executing the source code.

For log files, you will need to create an empty log file in the directory that your script will write the log file. Then change the log file’s permission to 777, which gives write permission.

Leave a Comment

Your email address will not be published. Required fields are marked *