Posted by bcm24feet on December 18, 2010 at 4:28am
I'm a noob here and I've run into a problem setting up multisites as subdirectories. I think I have it all done correctly except for this one error when Drupal is trying to access each site's 'files' folder. This is the way the error appears when I look at 'File system' page under 'Site configuration':
warning: fopen(sites/mulfordfam.dlinkddns.com.parisumc/files/.htaccess): failed to open stream: Permission denied in /usr/share/drupal6/includes/file.inc on line 129.
Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your sites/mulfordfam.dlinkddns.com.parisumc/files directory which contains the following lines:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinksI've tried a couple of different things that I found from searching around the forums, but no luck. If anyone can point me in the right direction, I'd appreciate it! Thanks.
Comments
The problem is that drupal
The problem is that drupal wants to create an .htaccess file, but can't, because the files directory is not writable. So chmod it so it's writeable. Drupal will then be able to write whatever files it needs to write, including the .htaccess file. Some clues here: http://drupal.org/node/394704
Thank you, that took care of
Thank you, that took care of it. I wonder, is there a way I can make Drupal the owner of that folder with the right permissions? Right now I did chmod 777 to open it up to anybody. I am worried that's not the most secure. I'm running a Linux server with Apache 2, if that makes a difference in knowing default file ownership settings.
All done
Ok, now I've looked at the link you provided, and that took care of all my concerns. Thanks for the help!