Anyone solve civicrm permission problem?-web-server needs to be granted write access

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
HappyJiyoung's picture

Anyone had problem with Civicrm installation?
"default/files folder writeable? error"

I saw people resolved the problem by doing
attrib -r default /s /d
attrib -r files /s /d

or

using unixtool chmod 777 mathod.

I even did
icacls sites\default /grant IIS_IUSRS:(M)
icacls sites\default /grant IUSR:(M)
icacls sites\default\files /grant IIS_IUSRS:(OI)(CI)(M)
icacls sites\default\files /grant IUSR:(OI)(CI)(M)

Also I tried GUI giving all the permission(check everything for thedefault folder) to IUSR AND IIS_IUSR

but nothing seems to solve my red error messages to install civicrm.
Anyone experienced same problem like I do and resolve the issue?

I used Drush commandline. Do I need to install unixtool from sourceforge like other people did(it was 2009 posting...so I assume drush command line is same thing).

Thank you for your feedback...I've been stuck with this issue for two days but can't find the answer...
I would love to see what civicrm look like on my server!!! :) Thank you for any feedback or comment!!

This is my error message:

Is the D:/sites/WBSMBS/sites/default/files folder writeable? The user account used by your web-server needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/D:/sites/WBSMBS/sites/default/files
Is the D:/sites/WBSMBS/sites/default folder writeable? The user account used by your web-server needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/D:/sites/WBSMBS/sites/default

Comments

Same Problem Here

Dan-902's picture

Getting the same error: and tried same solutions but no go.

The user account used by your web-server needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/C:/drupal-7.14/sites/default/files

The user account used by your web-server needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/C:/drupal-7.14/sites/default

Using Apache, PHP, Mysql
Apache/2.2.8 (Win32) PHP/5.2.5
MySql 5.0.45

Running on Windows Vista.

Danny

File permissions

alexpilotti's picture

Hi Jiyoung!

the "attrib -r" is needed only to remote the read only flag from the files / dir.

The usual command to set Read, Execute and Write permissions is:

icacls D:/sites/WBSMBS/sites/default /grant IIS_IUSRS:(OI)(CI)(RX,W)

Let me know if it works!

Alessandro Pilotti
MVP ASP.Net / IIS

HappyJiyoung's picture

Strange...
I did it but still CiviCRM installer page shows files and default folder as not writable...

Maybe parent drive permission affecting subfolders...problem or something...I don't know why it doesn't work.

I am thinking of contacting CiviCRM tech professional support(with paid I guess) to ask them to remotely access my server and check if they can fix this...
The thing is my server is Korean...so I hope they can guess the file permission...titles and resolve this issue...

Thank you so much for your kind support always!
Do you offer remote access service?
Let me know your rate if you do.
But I feel CiviCRM should know this kind of problem...it should work according to what the installation instruction says...to change writable folder permission...unless there is complicated parent...permission affecting difference with that...

Jiyoung

Able to Install

Dan-902's picture

I was able to install CiviCRM on WAMP (windows Vista) setup but had to go into the CiviCRM install file and by-passed some lines of code in the requireWriteable function found in the install script.

It appears to have worked since CiviCrm has created and stores a bunch of files in the /sites/default/files/civicrm directory.

Will need to do some more testing before I'm sure I didn"t mess anything up.

Danny
CiviCRM Noobie (but having fun)

Civi CRM installation problem

caseyfm's picture

Checked permissions and all of the above, trying to install Civi CRM. Finally checked Error logs on my host. Limits on uploads were set at 8M but Civi requires 11. Changed the php.ini file in my Drupal site to allow uploads of 20M and problem solved!
(Another newbie here.)

Getting Windows Permissions Defined in Handbook

mgifford's picture

@alexpilotti Should this:
icacls D:/sites/WBSMBS/sites/default /grant IIS_IUSRS:(OI)(CI)(RX,W)

get entered into the handbook here:
https://drupal.org/documentation/install/settings-file

Drupal on Windows

Group organizers

Group notifications

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

Hot content this week