Error: Unable to open version.txt: No such file or directory at /usr/sbin/csf

Sometimes we face problems while starting the CSF firewall on the server and get the following mentioned error:

Unable to open version.txt: No such file or directory at /usr/sbin/csf line 1773.

This error is basically due to the CSF version file missing on the server. To resolve this issue you can simply follow the below steps:
1) Go to folder

cd /etc/csf

2) Create a text file in this folder with name version.txt

vi version.txt

3) Now insert the CSF version number in this file eg: 5.17 & assign the ownership of root.root to the file

chown root.root version.txt

4) Once done assign the permission to the file

chmod 600 version.txt

5) Now just restart your CSF

csf -r

Error should be resolve now.