Page 1 of 1
[SOLVED] Moving installation to a subfolder
Posted: Sat Nov 13, 2010 6:36 am
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
Re: Moving installation to a subfolder
Posted: Sat Nov 13, 2010 6:47 am
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
Re: Moving installation to a subfolder
Posted: Sat Nov 13, 2010 6:50 am
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.
Re: Moving installation to a subfolder
Posted: Wed Nov 17, 2010 7:23 am
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?
Re: Moving installation to a subfolder
Posted: Wed Nov 17, 2010 8:17 am
by Hypocrite
Got it working by running install again.
Re: Moving installation to a subfolder
Posted: Wed Nov 17, 2010 11:50 pm
by Dr.CSS