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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • How to transfer website with civicrm?
Pages: [1]

Author Topic: How to transfer website with civicrm?  (Read 2845 times)

Boris

  • Guest
How to transfer website with civicrm?
August 25, 2007, 11:55:57 am
Hello,

I have finally been able to install CIVICRM on my server locally (mostly thanks to this forum).

However, when I transfer my site onto my provider's server, it does not work.

Anyone knows what I should do for it to work?

Thanks ...

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to transfer website with civicrm?
August 25, 2007, 01:55:34 pm
Can you give more details about the errors that you get after you transfer?
Also check your Resource URL's, make sure you correct them according to provider server.

HTH

kurund
Found this reply helpful? Support CiviCRM

Boris

  • Guest
Re: How to transfer website with civicrm?
August 26, 2007, 03:34:28 am
Indeed, apologies for not having done so in my earlier post.

When I try to access CiviCRM Home on the remote server it displays:

"Warning: main(CRM/Core/Config.php) [function.main]: failed to open stream: No such file or directory in /homepages/38/d210320620/htdocs/administrator/components/com_civicrm/admin.civicrm.php on line 27"

My provider (if that makes any difference) is 1and1.

And CiviCRM works very well locally, on EasyPHPb2.01 where I have the replica of the remote website.

I hope this helps.

Thanks,

Boris

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to transfer website with civicrm?
August 27, 2007, 12:01:49 am
Boris:

You might want to check:

http://forum.civicrm.org/index.php/topic,585.0.html
http://forum.civicrm.org/index.php/topic,777.0.html

Do search in forum for more help.

kurund
Found this reply helpful? Support CiviCRM

Boris

  • Guest
Re: How to transfer website with civicrm?
August 27, 2007, 01:42:48 am
Thank you for pointing those examples out.

I have done some extra research in the forum and I got that I had to change some parameters in the civicrm.settings.php file.

I now get this error message:

"Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/38/d210320620/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php on line 57"

with the following civicrm.settings.php file:

<?php

define( 'CIVICRM_UF'               , 'Joomla'        );
define( 'CIVICRM_UF_VERSION'       , '1.0.13' );
define( 'CIVICRM_UF_URLVAR'        , 'task'  );

define( 'CIVICRM_UF_DSN'           , 'mysql://yyyyy:xxxx@yyyyy.1and1.fr/LArbreAPain?new_link=true' );

define( 'CIVICRM_UF_USERSTABLENAME', 'jos_users' );
 
define( 'CIVICRM_MYSQL_VERSION', 4.1 );
define( 'CIVICRM_DSN'          , 'mysql://yyyyy:xxxx@yyyyy.1and1.fr/LArbreAPain?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );


global $civicrm_root;

$civicrm_root = '/homepages/38/d210320620/htdocs/administrator/components/com_civicrm/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/homepages/38/d210320620/htdocs\\media\\civicrm\\templates_c\\' );

define( 'CIVICRM_UF_BASEURL'      , 'http://www.larbreapain.org/administrator/' );


define( 'CIVICRM_SMTP_PASSWORD', ''    );

define('CIVICRM_DOMAIN_ID' , 1 );

define( 'CIVICRM_UF_FRONTEND', 0 );

$include_path = '.'        . PATH_SEPARATOR .
                $civicrm_root . PATH_SEPARATOR .
                $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
                get_include_path( );
set_include_path( $include_path );

define( 'CIVICRM_SMARTYDIR'  , $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR );
define( 'CIVICRM_TEST_DIR'   , $civicrm_root . DIRECTORY_SEPARATOR . 'test-new'   . DIRECTORY_SEPARATOR );
define( 'CIVICRM_DAO_DEBUG'  , 0 );
define( 'CIVICRM_TEMPLATEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'templates'   );
define( 'CIVICRM_PLUGINSDIR' , $civicrm_root . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'Core' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR . 'plugins' );

define( 'CIVICRM_GETTEXT_CODESET'    , 'iso-8859-1'   );
define( 'CIVICRM_GETTEXT_DOMAIN'     , 'civicrm' );
define( 'CIVICRM_GETTEXT_RESOURCEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'l10n' );

if ( function_exists( 'variable_get' ) && variable_get('clean_url', '0') != '0' ) {
    define( 'CIVICRM_CLEANURL', 1 );
} else {
    define( 'CIVICRM_CLEANURL', 0 );
}

// force PHP to auto-detect Mac line endings
ini_set('auto_detect_line_endings', '1');

// make sure the memory_limit is at least 32 MiB
$memLimitString = trim(ini_get('memory_limit'));
$memLimitUnit   = strtolower(substr($memLimitString, -1));
$memLimit       = (int) $memLimitString;
switch ($memLimitUnit) {
    case 'g': $memLimit *= 1024;
    case 'm': $memLimit *= 1024;
    case 'k': $memLimit *= 1024;
}
if ($memLimit >= 0 and $memLimit < 33554432) {
    ini_set('memory_limit', '32M');
}

?>


Any help would be welcome.

Thanks,

Boris

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to transfer website with civicrm?
August 27, 2007, 02:02:39 am
Boris:

I guess your server is running on php4 and you are using php5 version of civicrm.

kurund
Found this reply helpful? Support CiviCRM

Boris

  • Guest
Re: How to transfer website with civicrm?
August 27, 2007, 04:36:15 am
The server is running PHP3, 4 and 5. However, hotline told me that I needed to rename all my php files into .php5 extension to use PHP5, any file with extension .php would use PHP4 by default.

I have thus installed the PHP4 civicrm locally and then transferred the dump of the database as well as ftp'd all the site to the provider's server.

I get the following error message when trying to access CIVICRM Home through Joomla!:

"Warning: mkdir(/homepages/38/d210320620/htdocs\media\civicrm\templates_c\/) [function.mkdir]: Permission denied in /homepages/38/d210320620/htdocs/administrator/components/com_civicrm/civicrm/CRM/Utils/File.php on line 118"

with a civicrm.settings.php file as follows:

"<?php

define( 'CIVICRM_UF'               , 'Joomla'        );
define( 'CIVICRM_UF_VERSION'       , '1.0.13' );
define( 'CIVICRM_UF_URLVAR'        , 'task'  );

define( 'CIVICRM_UF_DSN'           , 'mysql://xxx:yyy@zzz.1and1.fr/LArbreAPain?new_link=true' );

define( 'CIVICRM_UF_USERSTABLENAME', 'jos_users' );
 
define( 'CIVICRM_MYSQL_VERSION', 4.1 );
define( 'CIVICRM_DSN'          , 'mysql://xxx:yyy@zzz.1and1.fr/LArbreAPain?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );

global $civicrm_root;

$civicrm_root = '/homepages/38/d210320620/htdocs/administrator/components/com_civicrm/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/homepages/38/d210320620/htdocs\\media\\civicrm\\templates_c\\' );
 
define( 'CIVICRM_UF_BASEURL'      , 'http://www.larbreapain.org/administrator/' );

define( 'CIVICRM_SMTP_PASSWORD', ''    );

define('CIVICRM_DOMAIN_ID' , 1 );

define( 'CIVICRM_UF_FRONTEND', 0 );

/**
 *
 * Do not change anything below this line. Keep as is
 *
 */

$include_path = '.'        . PATH_SEPARATOR .
                $civicrm_root . PATH_SEPARATOR .
                $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
                get_include_path( );
set_include_path( $include_path );

define( 'CIVICRM_SMARTYDIR'  , $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR );
define( 'CIVICRM_TEST_DIR'   , $civicrm_root . DIRECTORY_SEPARATOR . 'test-new'   . DIRECTORY_SEPARATOR );
define( 'CIVICRM_DAO_DEBUG'  , 0 );
define( 'CIVICRM_TEMPLATEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'templates'   );
define( 'CIVICRM_PLUGINSDIR' , $civicrm_root . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'Core' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR . 'plugins' );

define( 'CIVICRM_GETTEXT_CODESET'    , 'utf-8'   );
define( 'CIVICRM_GETTEXT_DOMAIN'     , 'civicrm' );
define( 'CIVICRM_GETTEXT_RESOURCEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'l10n' );

if ( function_exists( 'variable_get' ) && variable_get('clean_url', '0') != '0' ) {
    define( 'CIVICRM_CLEANURL', 1 );
} else {
    define( 'CIVICRM_CLEANURL', 0 );
}

// force PHP to auto-detect Mac line endings
ini_set('auto_detect_line_endings', '1');

// make sure the memory_limit is at least 32 MiB
$memLimitString = trim(ini_get('memory_limit'));
$memLimitUnit   = strtolower(substr($memLimitString, -1));
$memLimit       = (int) $memLimitString;
switch ($memLimitUnit) {
    case 'g': $memLimit *= 1024;
    case 'm': $memLimit *= 1024;
    case 'k': $memLimit *= 1024;
}
if ($memLimit >= 0 and $memLimit < 33554432) {
    ini_set('memory_limit', '32M');
}

?>"


I guess there's a mistake in this configuration file, any help would be welcome.

Thanks,

Boris

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to transfer website with civicrm?
August 27, 2007, 04:46:12 am
Boris:

Please check: http://forum.civicrm.org/index.php/topic,989.0.html

In general before posting any errors, i guess you should search forum for similar errors.:)

kurund
Found this reply helpful? Support CiviCRM

Boris

  • Guest
Re: How to transfer website with civicrm?
August 27, 2007, 05:22:29 am
Hello Kurund,

Yes, you are right, before posting I do research on similar errors.

The issue here is that my /media folder and all its children are writeable by the webserver ... :-(

Any idea?

Boris

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to transfer website with civicrm?
August 27, 2007, 05:38:42 am
Boris:

Quote
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/homepages/38/d210320620/htdocs\\media\\civicrm\\templates_c\\' );

i think it should be : /homepages/38/d210320620/htdocs/media/civicrm/templates_c/

HTH

kurund
Found this reply helpful? Support CiviCRM

Boris

  • Guest
Re: How to transfer website with civicrm?
August 27, 2007, 05:55:26 am
That was it!!! THANKS!!!!!!!!!!!!!!!!!!

 :D :D :D :D :D :D :D :D :D :D :D :D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • How to transfer website with civicrm?

This forum was archived on 2017-11-26.