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) »
  • Install / XAMPP / XP Pro - How to grant write access to "sites/default"
Pages: 1 [2] 3

Author Topic: Install / XAMPP / XP Pro - How to grant write access to "sites/default"  (Read 47864 times)

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 05, 2008, 12:07:12 am
Can you check if the file sites/default/civicrm.settings.php exists. If not then its a permission issue otherwise it could be memory limit issue.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 05, 2008, 12:21:26 am
Is your civicrm path defined correctly in your crm.settings.php file?

$civicrm_root = 'C:\\wamp\\www\\html\\sites\\all\\modules\\civicrm\\';

Have you used double \'s?
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

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 05, 2008, 09:59:03 am
Deepak - File exists

Eileen - path is:

Code: [Select]
$civicrm_root = 'C:/wamp/www/drupal-6.4/sites/all/modules/civicrm';
(it would not include the '/html/' part in wampp)

I have freed up some webspace on a unix server so am not pursuing the local install - but it would be good to get this sorted as there seem to be others with the same problem. (The unix install has been faultless!  :))

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 05, 2008, 10:54:29 am
no - the /html/ is specific to my install but it didn't work for me until I traded unix direction slashes for windows direction slashes & doubled them
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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 05, 2008, 11:02:49 am
nb - having to double slashes in paths is fairly common in windows land as the slash works as an escape character - telling it to take whatever character is after it literally.
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

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 05, 2008, 12:27:48 pm
I have edited the settings file but it does not seem to have had any effect - when attempting to enable the civicrm module in Drupal, the previous error is generated and/or a timeout is reported.
I regret that I must leave this problem now as I am fully committed setting up my on-line installation, although I would be interested to see if a solution is found by others - thanks for the help on this.

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 05, 2008, 03:02:32 pm
Quote from: Deepak Srivastava on October 04, 2008, 06:19:34 am
If you suspect its a code issue try commenting the line 266 to 270 (shown below) in the file - civicrm/install/index.php, which is actually responsible for verifying the permission and check.
Code: [Select]
            foreach ( $writableDirectories as $dir ) {
                $this->requireWriteable( $cmsPath . DIRECTORY_SEPARATOR . $dir,
                                         array("File permissions", "Is the $dir folder writeable?", null ),
                                         true );
            }


THANK YOU IT WORKS

ob

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 31, 2008, 05:49:27 am
Hi guys.....

No need to edit files or anything, simply need to change remove the Read-Only status from the directory.
Though not using the Explorer way!!

Here we go:
The method that worked for me was to go to start/run cmd  and go to the /sites folder. (or if you have cmdhere installed, in explorer right click folder cmdhere). Once in this folder apply the following command to solve the problem:
attrib -r default /s /d


Problem solved,

Let me know if it worked

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 31, 2008, 01:42:17 pm
Yes, but I'm wondering if the real answer isn't to amend the install script.
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

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 31, 2008, 03:45:41 pm
Thanks Eileen - that's the most sensible reply yet. I abandoned attempts to install locally - which should be easy out of the box IMO.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 31, 2008, 08:08:52 pm

Probably, but considering that the development team does not have any windows expertise (and i suspect most of us are not interested in gaining this expertise either), its up to our windows community to come up with patches to do so :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
November 01, 2008, 08:29:39 am
In the mean time, perhaps a note in the installation instructions could save some time for people like myself. Or perhaps a link to this topic?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
November 01, 2008, 12:45:19 pm

The wiki is community editable. Please edit the wiki and do the needful. The core team does check and monitor the changes made to the documentation

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
November 01, 2008, 02:27:20 pm
I've done a little poking around and the 'is_writable' test is not useful on folders in a windows environment. It tests for the Read-Only attribute not permission. Read-only is used on Folders in Windows to achieve things other than what it says - and should be ignored.

I would suggest that this test should be circumvented for windows - e.g. add an if the environment is windows return true, else do the existing function.
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

joachim

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
November 12, 2008, 09:25:00 am
Another problem you might encounter with Xampp on Windows is that CiviCRM needs innodb support enabled.

Instructions here: http://www.mydigitallife.info/2006/10/21/enable-mysql-innodb-storage-engine-support-in-xampp-installation/

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Install / XAMPP / XP Pro - How to grant write access to "sites/default"

This forum was archived on 2017-11-26.