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) »
  • Moving Installation to Another Server - old path problem
Pages: [1]

Author Topic: Moving Installation to Another Server - old path problem  (Read 2083 times)

robin

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Moving Installation to Another Server - old path problem
July 02, 2007, 12:55:05 pm
I've been building a new Drupal with CiviCRM web site on my local server and now I'd like to move it up to my web host.  I've got Drupal working.  I have changed civicrm.settings.php to use the new path on my host's server.  Drupal and CiviCRM are using separate databases.  CiviCRM is connecting to the database (I know because it wasn't when I first uploaded the files and created  the databases on the host's server).  So I moved the civicrm module into sites/all/modules and when I go to admin/build/modules I get several PHP warnings::

admin/build/modules
Code: [Select]
# warning: mkdir() [function.mkdir]: Permission denied in /home/wafed21/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.

# warning: mkdir() [function.mkdir]: No such file or directory in /home/wafed21/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.

I have set the files directory with the appropriate permissions. 

I placed an echo above line 114 and it seems that it is trying to create directories which follow my local server's path not the new path.  So local is (and this is what my echo statement is returning on the host's server):
Code: [Select]
path after mkdir: /usr/local/apache2/htdocs/clientname/files
path after mkdir: /usr/local/apache2/htdocs/clientname/files/civicrm
path after mkdir: /usr/local/apache2/htdocs/clientname/files/civicrm/upload/

but on the host's server the new path is

Code: [Select]
/home/clientname/public_html/files
/home/clientname/public_html/files/civicrm
/home/clientname/public_html/files/civicrm/upload

I updated $civicrm_root and CIVICRM_TEMPLATE_COMPILE_DIR in civicrm.settings.php:

Code: [Select]
$civicrm_root = '/home/clientname/public_html/sites/all/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/clientname/public_html/files/civicrm/templates_c/' );

but it seems like this path may be cached in the database somewhere.  I think I might have missed a step during the move.  I tried deleting files/civicrm directory, and let civicrm recreate it.  CiviCRM recreated the directory without an error but I'm still getting Permission Denied or No Such File errors.  Is there some cache somewhere else I need to delete now that I've moved the site?  Other ideas?

Thanks,

Robin

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: Moving Installation to Another Server - old path problem
July 02, 2007, 01:01:33 pm

check:

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

You need to reset config_backend column, or you can go to global administer and fix the directory settings there

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

robin

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Moving Installation to Another Server - old path problem
July 02, 2007, 02:10:16 pm
Thanks!

Quote
Then delete the existing DB config settings by running this query:

UPDATE civicrm_domain set config_backend = '' WHERE id = 1;

( this assumes you are running CiviCRM using the default domain of 1 - modify if you're not ).

fixed it

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Moving Installation to Another Server - old path problem

This forum was archived on 2017-11-26.