I have taken a backup of my live Moodle instance and added it into my test environment (also as an archive) and ran the replace tool to change all from 'moodle' to 'moodletest' in the database.
I have also transferred all of the file from 'moodledata' to 'moodletestdata' to ensure that the required files are in place.
If I try to open any of the files from my 'moodletest' instance, the software (I've tested Word doc(x) and PDF), the files seem to be corrupted (they download, but do not open). However, if I trace the file in the database and through the path to the actual file and download by ftp, the file opens no problem (so the file itself is not corrupted).
I've changed the permissions and ownership on the files to be the same as the live one (which still works fine), but cannot figure out why downloading the files from Moodle seems to corrupt it.
Anyone any suggestions of what is causing it/where I can look?