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
[SOLVED] Moving installation to a subfolder
[SOLVED] Moving installation to a subfolder
Last edited by Hypocrite on Thu Nov 18, 2010 7:27 am, edited 1 time in total.
Re: Moving installation to a subfolder
Duplicate DBHypocrite wrote: Hi,
What would be easiest steps to copy a current installation to a subfolder?
Copy files to the subfolder
Modify config.php to second DB and subfolder, modify .htaccess consequently
Did you modify rewrite base of .htaaccess ?
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.
It should work fineAnything 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.
The universe of information technology is constantly growing and contains only emerging products built on successive patches
Re: Moving installation to a subfolder
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
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?
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.
Re: Moving installation to a subfolder
Got it working by running install again.