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
General help
can't open downloaded files. hosting company bug??
This discussion has been locked so you can no longer reply to it.