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 »
  • Windows and IIS installations »
  • Differences between the original CiviCRM and the Windows IIS version.
Pages: [1]

Author Topic: Differences between the original CiviCRM and the Windows IIS version.  (Read 4777 times)

mathran

  • Guest
Differences between the original CiviCRM and the Windows IIS version.
October 24, 2007, 02:46:00 am
This topic describes the differences between the original CiviCRM version (1.8.10954 Drupal PHP5) and the one that Works with windows and iis.
This are the changes I had to make to get everything up and running.
Danial lobo did already make some change but I did not use them, jet. Sorry.
Setting.php
On line 113 :    if ( strpos( $civicrm_root, '/sites/all/modules' ) !== false ) {
is changed in :  if ( strpos( $civicrm_root, '\sites\all\modules' ) !== false ) {
CRM\Core\Config.php
I did remove the following lines of code from the functions addCoreVariables and initVariables.

In : function addCoreVariables( )

if ( isset( $_SERVER['HTTPS'] ) ) {
$this->userFrameworkBaseURL     = str_replace( 'http://', 'https://',
   $this->userFrameworkBaseURL );
}

In : function initVariables()

if ( isset( $_SERVER['HTTPS'] ) ) {
CRM_Utils_System::mapConfigToSSL( );
}
CRM\Event\Invoke.php
In : static function main
I did remove the following lines of code :

if ( !isset($_SERVER['HTTPS'] ) ) {
CRM_Utils_System::redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
}
CRM\Utils\File.php
function createDir( $path ) {      
if ( is_dir( $path ) || empty( $path ) ) {
return;
}
CRM_Utils_File::createDir( dirname( $path ) );
mkdir( $path ) ; //, 0777 );
}
I did remove the 0777, because, this did not seem to work on a windows server.

packages\Smarty\internals\ core.create_dir_structure.php
In the function smarty_core_create_dir_structure I did comment out the error warning.

if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $smarty->_dir_perms) &&  !is_dir($_new_dir)) {
$smarty->trigger_error("problem creating directory '" . $_new_dir . "'");
            return false;
}

Is now :

if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $smarty->_dir_perms) && !is_dir($_new_dir)) {
//$smarty->trigger_error("Problem creating directory -->'" . $_new_dir . "'<--");
             //return false;
}

CivCRm tries to create the directories from the bottom to the top. But in Windows some error messages will come if you try to create a directory which already exists. So I had to comment out  the error message. Not so nice but I worked.

Thanks,
Martin

mathran

  • Guest
Re: Differences between the original CiviCRM and the Windows IIS version.
February 26, 2008, 04:41:41 am
CiviCRM version 1.9 solves the problems.
Thanks a lot.
 ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Windows and IIS installations »
  • Differences between the original CiviCRM and the Windows IIS version.

This forum was archived on 2017-11-26.