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 »
  • IIS Joomla install solved
Pages: [1]

Author Topic: IIS Joomla install solved  (Read 12130 times)

dantheafrican

  • Guest
IIS Joomla install solved
October 22, 2007, 12:42:00 pm
There are a lot of unsolved posts regarding CiviCRM directory write permissions in iis

had some trouble during the install in Joomla 1.0.13 - none of the civicrm pages would load although the links were added in the joomla menu

here follows my successful civicrm.settings.php config file modifications (in joomlaroot/administrator/components/com_civicrm)

$civicrm_root = 'C:\domains\mydomain.com\wwwroot\joomlaroot\administrator\components\com_civicrm\civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'wwwroot\joomlaroot\administrator\media\civicrm' );

note the lack of c:\.... in front of the compile directory - this needs to be your website root directory

...also note the backslashes instead of forward slashed

I hope this saves time for someone...took 3 hours to work out - but now looking good!

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: IIS Joomla install solved
October 22, 2007, 01:38:27 pm

Thanx for the feedback and tips. I suspect will make life easier for a few folks who trip on this issue.

We'd like to solve it in core if possible (and hence avoid the issue if possible). Can u let us know:

1. What did the component installer have for those two values ($civicrm_root and CIVICRM_TEMPLATE_COMPILEDIR)

2. Does this value work:

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\domains\mydomain.com\wwwroot\joomlaroot\administrator\media\civicrm' );

If not, can you cut-n-paste the error message you get. If possible, can u debug and trace who is throwing an error and why? We have tried to avoid using relative path names to avoid environment related issues and would like to continue doing 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

dantheafrican

  • Guest
Re: IIS Joomla install solved
October 23, 2007, 08:16:13 am
Howdy, the previous values (directly after install) were

$civicrm_root = 'C:/domains/mydomain.com/wwwroot/crm1/administrator/components/com_civicrm/civicrm//';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:/domains/mydomain.com/wwwroot/crm1/administrator/media/civicrm' );

After changing all the forward slashed to backslashes for IIS I was getting an error like (note I am on joomla and cannot replicate the error now - but this drupal error message is almost identical, from another thread)

   * warning: Smarty::include(\en_US\\%%93\938\938D45F8%%Subject.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\wamp\www\drupal-5.1\modules\civicrm\packages\Smarty\Smarty.class.php on line 1265.

I don't think the double forward slash at the end of the first value makes a difference as it works either way.

The value

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\domains\mydomain.com\wwwroot\joomlaroot\administrator\media\civicrm' );

does not work (this was pretty much the same as it was before)

If I change the CIVICRM_TEMPLATE_COMPILEDIR back to what it was (as above) I just get blank screens on all the civicrm pages (so cannot replicate the error message) but when I change it back to wwwroot\joomlaroot\administrator\media\civicrm it works fine again

I hope this helps...now trying to setup civimail (seems a bit tricky...but will scoure the relevant forums)

Thanks for a great system, very impressive now I've had a better look around  8)

dantheafrican

  • Guest
Re: IIS Joomla install solved
October 25, 2007, 04:45:24 am
After upgrading to 1.9 stable I managed to replicate the earlier error...here it is

Warning: Smarty::include(C:/Domains/mydomain.org/wwwroot/crm1\media\civicrm\templates_c\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\Domains\mydomain.org\wwwroot\crm1\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

Warning: Smarty::include() [function.include]: Failed opening 'C:/Domains/mydomain.org/wwwroot/crm1\media\civicrm\templates_c\en_US\\%%DF\DF1\DF14E7A2%%index.tpl.php' for inclusion (include_path='.;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm\packages;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm;C:/Domains/mydomain.org/wwwroot/crm1\administrator\components\com_civicrm\civicrm\packages;.;C:\Apps\PHP5\Pear;c:\Apps\PHP5\Smarty\libs') in C:\Domains\mydomain.org\wwwroot\crm1\administrator\components\com_civicrm\civicrm\packages\Smarty\Smarty.class.php on line 1265

to fix it just change the civicrm.settings.php file (both in admin and front-end if necessary) as mentioned in the first post.

cooldudefx

  • Guest
Re: IIS Joomla install solved
November 02, 2007, 10:35:58 pm
THANK YOU SO MUCH!!!
 :) :) :)
I've spent like 6 hours on the problem, and here the solution was all the time. That first thread needs to be stickied or something!!!

aaronemde

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla! 1.5
  • MySQL version: Not sure
  • PHP version: Not sure
Re: IIS Joomla install solved
January 25, 2011, 08:07:24 pm
I just wanted to say THANK YOU! I downloaded the latest version of CiviCRM (3.3.2) and this issue still hadn't been resolved but your workaround worked!!!

You're a total live saver!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Windows and IIS installations »
  • IIS Joomla install solved

This forum was archived on 2017-11-26.