[SOLVED] Moving installation to a subfolder

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
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

[SOLVED] Moving installation to a subfolder

Post by Hypocrite »

Hi,

What would be easiest steps to copy a current installation to a subfolder?

We are doing a redesign of our site and I am planning to make a duplicate installation of the system and upgrade at the same time to 1.9.

I have changed all the path variables in the config.php but still when trying to open the admin page I get redirected to the main installations admin page and not to the subfolders admin page.

Anything else I would need to think of before doing?

My hope is that when I have everything working I can just move the new site to the root folder and fix all the variables back.

Thanks
Last edited by Hypocrite on Thu Nov 18, 2010 7:27 am, edited 1 time in total.
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Moving installation to a subfolder

Post by seensite »

Hypocrite wrote: Hi,

What would be easiest steps to copy a current installation to a subfolder?
Duplicate DB
Copy files to the subfolder
Modify config.php to second DB and subfolder, modify .htaccess consequently

We are doing a redesign of our site and I am planning to make a duplicate installation of the system and upgrade at the same time to 1.9.

I have changed all the path variables in the config.php but still when trying to open the admin page I get redirected to the main installations admin page and not to the subfolders admin page.
Did you modify rewrite base of .htaaccess ?
Anything else I would need to think of before doing?

My hope is that when I have everything working I can just move the new site to the root folder and fix all the variables back.
It should work fine
The universe of information technology is constantly growing and contains only emerging products built on successive patches
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: Moving installation to a subfolder

Post by Hypocrite »

I think the problem is that it's at the moment using the same database. I tried to clear the cache but have to make a duplicate of the database first.
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: Moving installation to a subfolder

Post by Hypocrite »

I am still having problems with it.

I have done the following steps:
1. Deleted cache
2. Moved db to a new one
3. Copied files
4. Updated the db information and paths in config.php
5. Updated .htaccess file

But all links still point to the root folder of my site. And if I try to access the admin panel for the subfolder, there flashes a PHP error and then I am redirected to the old admin login.

What could be the cause of this?

I noticed that in the config.php there is this notice:
Please clear the cache (Site Admin->Global Settings in the admin panel)

But I cannot do this because I get directed to the old login. I cleared the cache before moving the db. Is it possible to clear the settings straight from the db?
Last edited by Hypocrite on Wed Nov 17, 2010 7:29 am, edited 1 time in total.
Hypocrite
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 26, 2009 6:25 am

Re: Moving installation to a subfolder

Post by Hypocrite »

Got it working by running install again.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Moving installation to a subfolder

Post by Dr.CSS »

Locked

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