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 47869 times)

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
Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 02, 2008, 08:13:51 am
Hy
I'm under XP Pro, using XamppLite with PHP 5.2.6 and MySQL 5.0.51b-community-nt.
I'm trying to install CIVICRM v2.1 stable with the automatized install and I get :    
"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:/xampplite/htdocs/ifpcrm\sites\default"
How can I do do change the permission and how do you proceed if using unxutils ?
Tks !!

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 02, 2008, 10:30:29 am
I don’t have any Windows experience, but it seems it should be possible to download unxutils and then open the command prompt, and after installing them run

Code: [Select]
chmod 777 C:/xampplite/htdocs/ifpcrm/sites/default

Let us know if this doesn’t work.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 02, 2008, 02:59:47 pm
Quote from: Piotr Szotkowski on October 02, 2008, 10:30:29 am
I don’t have any Windows experience, but it seems it should be possible to download unxutils and then open the command prompt, and after installing them run

I have the same problem. Have done everything possible to make that folder writeable in windows.
I can't see how to use UnixUtils and can't find any help on this - can anyone explain please?
On a local installation (using Wampp) it seems to me that the folder should be writeable anyway. Is there another way round this problem? Some way of bypassing this stage in the installer maybe? Or is there a setting in wampp that could be used?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 03, 2008, 12:13:50 am
Well, it *should* work. :|

Can you put the attached file in your install directory (as index.php) and check whether this fixes the issue? (I switched some hard-coded /s to DIRECTORY_SEPARATORs.)
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 03, 2008, 01:58:54 am
Thanks for your reply but Nope... :(
   
Code: [Select]
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.4\sites\default

with your index.php at  C:/wamp/www/drupal-6.4\sites\all\modules\civicrm\install\

This is using the root account in localhost, so all files should be accessible?

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 03, 2008, 10:17:13 am
Hy!
Thanks for your answer but both solutions didn't work:

With unxutils  and the command : chmod 777 C:/xampplite/htdocs/ifpcrm/sites/default => I got this message : zsh: command not found :chmod
Could you please describe precisely the way to proceed

With the index.php file I replace my genuine one, but it doesn't work.
Need help

Thanks

ari

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 12:29:52 am
I'm having the same problem. I've tried installation of 2.1 on Wampserver, XAMPP, and Uniform Server. All 3 packages have the error about sites/default permissions.

I also tried unixutils and got the same error mentioned above. Any ideas?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 04:58:45 am
chmod will not work if it's a FAT32 partition since it does not provide any security (while NTFS should work).

Even windows procedure to set/change permission applies only if its a NTFS partition - http://technet.microsoft.com/en-us/library/bb456988.aspx (read the note below - "You can set file and folder permissions only on drives formatted to use NTFS").
« Last Edit: October 04, 2008, 05:04:44 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 05:35:05 am
Thanks , but file system is NTFS
The problem must be in the install script - the file permissions are OK.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
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 );
            }
« Last Edit: October 04, 2008, 06:30:16 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 06:28:19 am
Thanks very much Deepak - that has worked!  :) :) :)

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 06:59:54 am
Deepak: this might be because the getBaseDir() function in install/index.php is creating a path with a forward slash in the end of it. If you have a Windows machine, please try backporting r17373 to 2.1 and check whether this fixes this problem.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 07:33:39 am
Right now i don't but we 'll try to setup one and check.

patroclas, since you already on windows could you help us on it. All you need to do is replace civicrm/install/index.php with latest file - http://svn.civicrm.org/civicrm/trunk/install/index.php and try reinstall and check if you get that same error again.
« Last Edit: October 04, 2008, 07:42:59 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 11:21:10 am
Quote from: Deepak Srivastava on October 04, 2008, 07:33:39 am
Right now i don't but we 'll try to setup one and check.

patroclas, since you already on windows could you help us on it. All you need to do is replace civicrm/install/index.php with latest file - http://svn.civicrm.org/civicrm/trunk/install/index.php and try reinstall and check if you get that same error again.

I tried this but same error

   
Code: [Select]
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.4\sites\default

patroclas

  • Guest
Re: Install / XAMPP / XP Pro - How to grant write access to "sites/default"
October 04, 2008, 02:03:32 pm
I am getting more errors now and I guess it is not able to create or write to the /files, /temp and /upload directories after attempting to enable the civiCRM module in drupal?
Code: [Select]
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\drupal-6.4\includes\file.inc on line 889
I have created those directories manually but no change.

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.