[SOLVED] How to move a website from a /temp folder to the root

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.
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

[SOLVED] How to move a website from a /temp folder to the root

Post 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.
Last edited by amhoffmaster on Fri Dec 03, 2010 7:29 pm, edited 1 time in total.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: How to move a website from a /temp folder to the root

Post by M@rtijn »

You can simply move the files to the root of the site, then change all the paths in the config.php
Make your community a better place!
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How to move a website from a /temp folder to the root

Post by Wishbone »

Make sure you clear your cache first.
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

Re: How to move a website from a /temp folder to the root

Post 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?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How to move a website from a /temp folder to the root

Post 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?
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

Re: How to move a website from a /temp folder to the root

Post 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
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How to move a website from a /temp folder to the root

Post by Wishbone »

Sorry.. "Site Admin" -> "Global Settings" -> "Advanced Setup" -> "Clear Cache"
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

Re: How to move a website from a /temp folder to the root

Post 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?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How to move a website from a /temp folder to the root

Post by Wishbone »

Go ahead and try. Double check that all references to your temp folder are gone, both the paths and URLs.
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

Re: How to move a website from a /temp folder to the root

Post by amhoffmaster »

HELP! I'm getting a bunch of errors: see www.hfmadv.org
All the url should be relative right?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How to move a website from a /temp folder to the root

Post 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.
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

Re: How to move a website from a /temp folder to the root

Post 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
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

Re: How to move a website from a /temp folder to the root

Post 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.
amhoffmaster
Forum Members
Forum Members
Posts: 121
Joined: Sat Jan 03, 2009 5:05 pm

Re: How to move a website from a /temp folder to the root

Post 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?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How to move a website from a /temp folder to the root

Post 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"
Locked

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