Multisite "File system" error

Events happening in the community are now at Drupal community events on www.drupal.org.
bcm24feet's picture

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 +FollowSymLinks

I'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

mile23's picture

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

bcm24feet's picture

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

bcm24feet's picture

Ok, now I've looked at the link you provided, and that took care of all my concerns. Thanks for the help!

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week