CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Granting write access error [Resolved]
Pages: [1]

Author Topic: Granting write access error [Resolved]  (Read 4255 times)

at02

  • Guest
Granting write access error [Resolved]
September 05, 2008, 09:36:53 am
So, I got a new host and everything and was trying to install CiviCRM 2.1 Beta 3 on my Drupal 6.4 when I got this error:


Quote
Is the 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: /sites/default


How does one go about fixing this error?

Thanks
« Last Edit: September 05, 2008, 03:01:04 pm by at02 »

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Granting write access error
September 05, 2008, 09:55:01 am
Hey,

Please refer to your web host's documentation/support on how to enable write access to sites/default directory. During Drupal installation, you probably had to enable write access to this directory as well.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Granting write access error
September 05, 2008, 09:56:36 am
two options:
1. you need to ssh into your server and then go to your drupal root

Code: [Select]
chmod 777 sites/then you may need to go into the sites folder and do this

Code: [Select]
chmod 777 default/
then perform the install and after it's done go back adn do

Code: [Select]
chmod 755 sites/and
Code: [Select]
chmod 755 default/
2. if you don't know how to do shell access, then most likely you can get into a cpanel. There is usually a file manager option. Click on that, and then go into your drupal root folder. Then click on the 'sites' folder, and on the right side of the screen there should be a 'change permissions' link. Some boxes should come up, and under the 'world column' you would check the 'write' box. Then do the same thing for the 'default' folder inside the 'sites' folder. Then do the install, and then make sure you set them both back and remove 'write' permission for the 'world' column.

If you do that and the install is still having issues, perform the same action on the civicrm.settings.php file within the 'default' folder.

at02

  • Guest
Re: Granting write access error
September 05, 2008, 03:00:49 pm
Quote from: Michał Mach on September 05, 2008, 09:55:01 am
Hey,

Please refer to your web host's documentation/support on how to enable write access to sites/default directory. During Drupal installation, you probably had to enable write access to this directory as well.

Thx,
m

Well, I think it's more of a drupal/civicrm thing, since that's a drupal folder. No, I didn't have to enable write access previously.


Quote from: emilyf on September 05, 2008, 09:56:36 am
two options:
1. you need to ssh into your server and then go to your drupal root

Code: [Select]
chmod 777 sites/then you may need to go into the sites folder and do this

Code: [Select]
chmod 777 default/
then perform the install and after it's done go back adn do

Code: [Select]
chmod 755 sites/and
Code: [Select]
chmod 755 default/
2. if you don't know how to do shell access, then most likely you can get into a cpanel. There is usually a file manager option. Click on that, and then go into your drupal root folder. Then click on the 'sites' folder, and on the right side of the screen there should be a 'change permissions' link. Some boxes should come up, and under the 'world column' you would check the 'write' box. Then do the same thing for the 'default' folder inside the 'sites' folder. Then do the install, and then make sure you set them both back and remove 'write' permission for the 'world' column.

If you do that and the install is still having issues, perform the same action on the civicrm.settings.php file within the 'default' folder.

I was able to access the files through cpanel and change permissions, thank you so much!

synchlayer

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
Re: Granting write access error [Resolved]
March 30, 2009, 12:11:02 pm
Thanks this saved me from all kinds of problems, excellent advice.

vikasgupta

  • Guest
Re: Granting write access error [Resolved]
May 03, 2009, 12:17:03 pm
I am trying to install CiviCRM on Drupal on my laptop (Windows XP).  Installer fails at "Is the 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:  C:/wamp/www/drupal-6.10\sites\default

Can anyone please help in resolving this issue.  I tried to go into the folders and set them all to read/write but it did not resolve this issue?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Granting write access error [Resolved]
May 04, 2009, 07:53:02 am
There was a problem that sounded similar to this some people were having earlier. The trick was to remove the XP readonly flag (it doesn't really mean anything applied to a folder but it seems to be there by default). You can set it through right-click properties and clearing the read only flag (make sure to apply it to all folders & subfolders) but some people were having more success with attrib -R in the command prompt. (if you search on that in the forum you should find the threads)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Granting write access error [Resolved]

This forum was archived on 2017-11-26.