I have no idea why your web server is telling you Permission denied. It has to be your Apache config, your php config, a firewall/security software/module, or actual permissions. It does not appear to be permissions at the file system level (although I don't know if your web server is running as the apache user).