Hey All,
I am running Drupal on a Windows 2003 IIS setup, using php5. I am trying to configure my drupal theme. It is supposed to allow me to upload an icon and a logo to customize the theme I am using but when I go to the customize page I am greeted by the following message.
* warning: fopen(sites/default/files/.htaccess) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\blog\includes\file.inc on line 129.
* Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your sites/default/files directory which contains the following lines:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
Then if I try to upload something, I am give this message.
* warning: fopen(sites/default/files/.htaccess) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\blog\includes\file.inc on line 129.
* Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your sites/default/files directory which contains the following lines:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
* The selected file eoriginal.jpg could not be uploaded. Only JPEG, PNG and GIF images are allowed.
* The settings have not been saved because of the errors.
I know that IIS doesnt use htaccess could that have something to do with it. Any help would be greatly appreciated.
Thanks,
Joe
Comments
Update
I cleared my htaccess file since it isnt being used on IIS anyways, but I still get errors when I try to upload a picture to use as my logo.
Please help!
Thanks.
Having the same problem
With the Newsflash theme
on iis7 set the permission for iusr
right click on the sites/default/files folder and select Properties. Select the Security tab.
Click on the IUSR user and make sure that IUSR has write permissions enabled (check whether you see the checkmark next to Write permissions).
That should be all.
change permissions
Try changing the permissions at /sites/default/files to 777