Finally found the problem. for some reason, there were tons of blank lines in config.php which caused that problem. removed the extra lines, and problem solved
files are downloaded in raw format
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.