Page 1 of 1

migrating CMSms files to subdirectory

Posted: Mon Sep 03, 2007 6:29 pm
by newagekat
Hi:

I'm using CMS v1.1 on a Linux server, using PHP.

Due to changes in site structure, I've had to move the CMS files from root to a directory. This is the first time i've done this, and I'm concern over loosing all the work i've done on this site thus far.

I adjusted the URL in config.php accordingly.

If i adjust this path: $config['uploads_path'] = '/home/akebc/public_html/en/uploads';

Do I need to make any changes here: $config['uploads_url'] = $config['root_url'] . '/uploads';

when i go to the sitehttp://www.webalacarte.ca/~akebc/en/, i get: Fatal error: Call to a member function on a non-object in /home/akebc/public_html/en/plugins/function.cms_selflink.php on line 331

also, when i go to en/admin/login.php, I get the login, but when i submit it is still trying to find /admin/index.php

Does anyone have any ideas?

Re: migrating CMSms files to subdirectory

Posted: Mon Sep 03, 2007 7:38 pm
by cyberman
The easiest way te get correct pathes is to run install wizard once again (without writing database tables and default content in step 4).

Re: migrating CMSms files to subdirectory

Posted: Mon Sep 03, 2007 9:17 pm
by newagekat
Cyberman:

Thanks a bunch.  I did just that and it worked.

One last question, when the domain dns get moved to the new host, what should i amend in config to ensure a seemless transition?

Re: migrating CMSms files to subdirectory

Posted: Tue Sep 04, 2007 3:30 pm
by cyberman
Normally you could go the same way.

Btw, read the wiki :)

http://wiki.cmsmadesimple.org/index.php ... New_Server

Re: migrating CMSms files to subdirectory SOLVED

Posted: Tue Sep 04, 2007 3:44 pm
by newagekat
thank you, this is usefull, although I will not be moving servers, just pointing the domain to a new server.  so I think i only need to change config and empty the tmp/template_c folder.

thanks again for the response.