Permission denied when uploading
mikestefff - May 4, 2009 - 00:59
| Project: | Bitcache |
| Version: | 6.x-1.0-beta2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Arto |
| Status: | closed |
| Issue tags: | permissions |
Jump to:
Description
Had to create /sites/default/files/bitcache/file myself because of errors thrown. Now I'm getting this when trying to upload via File Framework. Not sure what has to be done on the admin backend with repositories and urls, etc??

#1
Mike, "permission denied" errors always mean that your Unix permissions are set incorrectly on the directories in question, preventing Drupal (and hence Bitcache) from writing to the said directories. There is nothing that Drupal (or Bitcache) can do to fix this state of affairs; you must set permissions correctly.
To do this, ensure that the web server user (typically something like "www" or "apache") has the permissions to write to the directories "sites/default/files" as well as to "sites/default/files/bitcache" and "sites/default/files/bitcache/file". Typically you would do this by making the directories group-writable, with the permissions "drwxrwxr-x" (or "775", octal).
If in doubt, set the directory permissions to world-writable, "drwxrwxrwx" (or "777", octal), which always solves the problem but isn't the most secure configuration possible.
Your hosting company can usually help you out with this if you open a support ticket.