This is my setup:

Drupal 5.1
Windows Server 2003
PHP 5.2.2
MySQL 5.0.41
IIS 6.0

Whenever I go to create any sort of content, I receive the following error:

warning: chmod() [function.chmod]: No error in C:\website\includes\file.inc on line 119.

Any suggestions on what I might look for to make this go away?

Comments

SabbeRubbish’s picture

Yeah, leave the blasted IIS and go for Apache ;-)
Sorry, no clue :-)

Far2Paranoid’s picture

I'd definitely go to Apache except there's a corporate policy against it.

jonjo’s picture

To expand a little (but with my limited knowledge of IIS mind) it sounds like a file permissions problem. Perhaps files are not readable by your IIS Server? You may already know this but CHMOD is not supported by IIS for file permissions. However, I think (stress 'think') there is a control panel equivalent for setting file permissions in IIS. You'll probably need to alter these a bit.

SabbeRubbish’s picture

Oh my god, how could you ever have a corporate policy against great free software...
I feel bad for you...

Good luck with your problem ;-)

jweowu’s picture

This will likely be a permissions issue with the system temp directory.

If you go to /admin/settings/file-system, you can change the temp directory to something different from the default. This might be preferable to changing permissions on c:\windows\temp

Then give the IIS guest account (the name of which probably starts with IUSR) read/write permissions to the temp directory, and you should be sorted.

Before changing temp directories, I had previously resolved this issue by adding read-only access to c:\windows\temp to the network group, which I thought was slightly curious.

psych0fred’s picture

I had the same problem on my local machine which I use to develop. After reading the above comments all it took to fix the problem was adding IUSR_ with modify permissions to C:/windows/temp folder security settings. The web service needs permissions to use the windows temp folder apparently. Thanks for the tip.

muggidk1’s picture

The 0 at the start of the $mode number in chmod() doesn't work with windows.

To fix this open the file.inc file in an editor and change line 119 to look like this:

chmod($directory .'/.htaccess', 664);

That did the trick for me ;o)

Running: drupal 5.5 on Windows Vista SP1, IIS7 (ISAPI), php 5.2.5, mySql 5.0.45.

robdinardo’s picture

That worked for me! I added IUSR_COMPUTERNAME to the c:\windows\temp directory with Modify permissions and it worked!

I did not have to change 0664 to 664

thanks again!