migrating CMSms files to subdirectory

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

migrating CMSms files to subdirectory

Post 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?
cyberman

Re: migrating CMSms files to subdirectory

Post 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).
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: migrating CMSms files to subdirectory

Post 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?
cyberman

Re: migrating CMSms files to subdirectory

Post by cyberman »

Normally you could go the same way.

Btw, read the wiki :)

http://wiki.cmsmadesimple.org/index.php ... New_Server
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: migrating CMSms files to subdirectory SOLVED

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”