chmod -R 755 moodle
That should take care of permissions - however you might check ownership of the files too. I think on Centos the webuser is apache
chown -R apache:apache moodle
but please verify that I have owner and group right first before running that. I am a Debian user.