failed to open stream: Permission denied
| Project: | Alter CSS |
| Version: | 5.x-1.1 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Really kewl module! We do not wish to give server ftp or remote access to users of community sites, yet some post-tech users do wish access to the styles of the drupal used for that and this module can make that happen. Much appreciated! :-)
Can make it happen if I know how to solve this problem: I can create new css files real fine, but when I make changes and save the file I get this message:
warning: copy(sites/[sitename]/themes/camp/style.css) [function.copy]: failed to open stream: Permission denied in /var/www/drupal-5.7/sites/[sitename]/modules/alter_css/alter_css.module on line 186.
Also, I cannot set a newly made stylesheet to become the style.css
I get (of course) the same error message.
I think I need to change permissions, and tried that. Doesn't seem to get it to work.
If you can help me, I would much appreciate that.
Cheers,
Nynke

#1
Oh, eh, changing the permissions to 777 for each stylesheet on the server did help, but that still requires my intervention when users make a new stylesheet, and the set style.css doesn't give the actual changes made in a file (doesn't become the style.css).
#2
There really should be some internal access checking as it can be safely assumed most web server installs will not have write access to the theme directory by default.
An implementation of hook_status to check if write permissions are available I think would be in order. A Site Configuration -> CSS admin menu item which allows an admin to specify the directory the CSS files would be stored in is also appropriate.