Permission denied means that your PHP instances (which is run as the same user that your webserver is running as) cannot access the files. You can either change the ownership of the files to the webservers username, or you can alter the permissions on the files. Which you did.775 meansOwner all permission (Read, Write, Execute)Group members all permissions (Read, Write, Execute)All others Read and Execute.