Page 1 of 2
[SOLVED] How to move a website from a /temp folder to the root
Posted: Thu Dec 02, 2010 8:38 pm
by amhoffmaster
I'm using CMSMS 1.8.2 While I was creating this site, I used a temp folder to house the site until it was ready to go to the live site in the root folder. So, the database information should be ok.
The question is, what's the best way to move the site up one level to the root folder? Can I just move the files up one level? I'm thinking there will be paths that will be wrong if I do that.
Re: How to move a website from a /temp folder to the root
Posted: Thu Dec 02, 2010 9:02 pm
by M@rtijn
You can simply move the files to the root of the site, then change all the paths in the config.php
Re: How to move a website from a /temp folder to the root
Posted: Thu Dec 02, 2010 9:04 pm
by Wishbone
Make sure you clear your cache first.
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 2:39 pm
by amhoffmaster
Ok, first I changed the paths in the config. Then I moved the files. I got errors. Thinking I had messed something up, I copied the files back into the temporary folder. Then it seemed to be working, but I noticed when I logged into the admin, it redirected me to admin back into the temp folder; same with all the links in the menu...they revert back to the temp folder. I'm thinking maybe this is the caching issue you were talking about. Are you talking about deleting all of the files in /tmp/cache?
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 2:48 pm
by Wishbone
Before moving/copying the files, go to "Site Admin" -> "Advanced Setup" -> "Clear Cache"
Aside from the paths, did you change all the URLs as well?
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 2:55 pm
by amhoffmaster
So, should I remove all the files I put in the root folder and start over by doing the "Site Admin" -> "Advanced Setup" -> "Clear Cache" step in the temp folder?
I just noticed there's no Advanced setup under Site Admin
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 2:57 pm
by Wishbone
Sorry.. "Site Admin" -> "Global Settings" -> "Advanced Setup" -> "Clear Cache"
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 3:04 pm
by amhoffmaster
Ok, found that and cleared the cache. Should I start over the delete the files from the root and recopy the files from the temp folder into the root?
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 3:27 pm
by Wishbone
Go ahead and try. Double check that all references to your temp folder are gone, both the paths and URLs.
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 3:41 pm
by amhoffmaster
HELP! I'm getting a bunch of errors: see
www.hfmadv.org
All the url should be relative right?
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 3:49 pm
by Wishbone
Ensure that all files were copied. Do all files exist in /modules/CGExtensions?
Sorry to leave you in the middle of this.. I have to take off now.. Hopefully someone else can come along and continue helping.
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 3:51 pm
by amhoffmaster
I moved them all and the temp directory is empty.
and I can't get into the admin to do anything or reinstall the cge extensions
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 4:02 pm
by amhoffmaster
Ok, I copied the files all back into the temp folder (/New) and it's at least working again. But I really need to resolve how to move these files so it's reading out of the root. Any help would be greatly appreciated. And Thanks for all your help Wishbone.
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 7:09 pm
by amhoffmaster
Ok, I got the site working from the root. It appears that I had an extra "/" in the config file and I did clear the site cache and removed all files from the root directory before moving the files from the temp folder up.
Now none of the forms are working, like the login and application form.
www.hfmadv.org. Those pages loose the css altogether and the form.
On the login and application form pages I get the following error: Truetype-Directory is not readable!
Any ideas?
Re: How to move a website from a /temp folder to the root
Posted: Fri Dec 03, 2010 7:18 pm
by Wishbone
Glad you got your original issue working.. Ignore the message I sent you.
Regarding the other... search the error message on the forum.. I get many hits when I search "Truetype-Directory not readable"