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 »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • New Install not cofiguring
Pages: [1]

Author Topic: New Install not cofiguring  (Read 2814 times)

baz

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
    • The Outdated Blog of Barry
  • CiviCRM version: 4.1
  • CMS version: WordPress 3.3.1
  • MySQL version: 5.x
  • PHP version: 5.3.3
New Install not cofiguring
April 03, 2012, 08:42:48 am
Greetings,

I am attempting to setup Civi 4.1 beta 3 on WordPress 3.3.1, MySQL 5.x (I have not found on our web host what x equals), PHP 5.3.3 and Windows 64bit

I am getting 2 errors -

Is the E:\Spaces\Betel of Britain1\crm.betel.co.uk\wwwroot/wp-content/plugins\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:
/E:\Spaces\Betel of Britain1\crm.betel.co.uk\wwwroot/wp-content/plugins\files

and

Is the E:\Spaces\Betel of Britain1\crm.betel.co.uk\wwwroot/wp-content/plugins\civicrm 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:
/E:\Spaces\Betel of Britain1\crm.betel.co.uk\wwwroot/wp-content/plugins\civicrm

My web host has verified the permissions on the folders.

Their question/response to me is "contact the developer of the software you use to ensure it works on windows 64 bit and php5.3.3 the permissions are set correct on your account directories, you can re-check them in filemanager in the control panel."

Is Windows 64 a deal killer?

Thank you,
Baz

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: New Install not cofiguring
April 03, 2012, 10:38:14 am
The problem may be the forward and backward slashes. Linux uses a forward slash / to separate folders but Windows uses a backward one \

Your folder names use a mix of forward and backward below.

But I'm not sure how to fix this.

We have other reports here http://forum.civicrm.org/index.php/topic,23373.msg99157.html#msg99157 and http://forum.civicrm.org/index.php?topic=23559.0 of problems installing on Windows. Those posts seem to have a problem with a leading slash, meaning Linux folder definitions always start with a slash / but Windows must always start with a letter like C or E. Your post also shows this problem, but I'm not sure if that's the main issue here or not.

Unfortunately, most of the CiviCRM developers work with Linux (or OS/X) and don't have much experience nor expertise with Windows servers. :(
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

SheamusPatt

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.5.20
  • PHP version: 5.3.1
Re: New Install not cofiguring
April 12, 2012, 07:46:23 pm
It's a bug, but one that only affects Windows, not any Linux/Unix/MacOS boxes.

Here's the bad code, in drupal/sites/all/modules/civicrm/install/index.php

        foreach ( $writableDirectories as $dir ) {
            $this->requireWriteable( CIVICRM_DIRECTORY_SEPARATOR . $dir,
                array("File permissions", "Is the $dir folder writeable?", null ),
                true );
        }


The problem is the bit 'CIVICRM_DIRECTORY_SEPARATOR .' which tacks a / on the front of any filename. If the file path is absolute, that will put an extra / on the front of it. Unix-like filesystems ignore it. On Windows, though, it's now iinvalid. You can see the slash in the output on the web page. Just take that bit out, and it will work. I don't think it will hurt on Unix either, though I don't quite understand why it's there in the first place so I'm not certain of it.

By the way, either / or \ works as a directory separator on Windows; in fact, CiviCRM forces it to / in some of its own code just to keep things sane. It's only certain applications like the Explorer and shell that insists on \; internally, / is file.

Also, I'm installing myself on a Windows 64 bit system, and so far it's fine except for this bug I just tracked down.

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: New Install not cofiguring
April 13, 2012, 07:53:31 am

can you please file an issue and attach the patch. Also please point to this forum post so we have some history

thanx for investigating :)

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

Gorentz

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: WordPress
  • MySQL version: 5.5.21
  • PHP version: 5.3.10
Re: New Install not cofiguring
May 22, 2012, 10:13:30 pm
I have the same problem, trying to install CiviCRM in WordPress in a Wampdeveloper environment.  I've tried on a couple different versions of Windows (Windows Server 2008 and Windows XP).  The installation complains about the Files folder that needs to be in the Plugins folder. 

The fix suggested above seems to work.
« Last Edit: May 22, 2012, 10:24:00 pm by Gorentz »

slow

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.1.2 with Wordpress
  • CMS version: Wordpress 3.3.2
  • MySQL version: Unknown
  • PHP version: 5.3
Re: New Install not cofiguring
May 24, 2012, 03:49:20 pm
Just in case this helps anyone, I got the same error regarding wp-content/plugins/files folder permissions

For some reason I was getting an error saying the folder wasn't writeable when in fact the folder hadn't been created in the first place.

My server support solved it for me by simply creating the folder themselves - it all went fine from there.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • New Install not cofiguring

This forum was archived on 2017-11-26.