I was wondering if I can copy my current working site to another folder and upgrade that folder. Once the upgrade is a success I'll delete the old and switch to the new. I was wondering if the old site can function while I work on the new site.
That's what the clone utility is for -- it makes that copy process one click -- but it wasn't added until the 5.0 series. For 4.1, to do it manually you'll need to: 1) Copy the database -- either as a whole to a new database, or if you only have one db you can use a text editor to change the table prefixes after downloading a backup. 2) Copy all the files to a new directory. 3) Open config.php in the new directory and update the database, url and file path values to the new directory values.
Then run the upgrade on the new copy.
Changing the location of the new directory to replace the old is as easy as a directory rename in the 5.1 series. If you only upgrade to the 5.0 series, you'll need to edit config.php to update the url and file paths when you move it.
If you have a special cookie path at Admin -> Settings -> System Configuration, you'll need to make sure that's not set to something that'll prevent a cookie from working at the new location.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Pre-upgrade questions
Beginner
Usergroup: Customer
Joined: Jun 25, 2008
Total Topics: 4
Total Comments: 5
I was wondering if I can copy my current working site to another folder and upgrade that folder. Once the upgrade is a success I'll delete the old and switch to the new. I was wondering if the old site can function while I work on the new site.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
That's what the clone utility is for -- it makes that copy process one click -- but it wasn't added until the 5.0 series. For 4.1, to do it manually you'll need to:
1) Copy the database -- either as a whole to a new database, or if you only have one db you can use a text editor to change the table prefixes after downloading a backup.
2) Copy all the files to a new directory.
3) Open config.php in the new directory and update the database, url and file path values to the new directory values.
Then run the upgrade on the new copy.
Changing the location of the new directory to replace the old is as easy as a directory rename in the 5.1 series. If you only upgrade to the 5.0 series, you'll need to edit config.php to update the url and file paths when you move it.
If you have a special cookie path at Admin -> Settings -> System Configuration, you'll need to make sure that's not set to something that'll prevent a cookie from working at the new location.