[SOLVED]Moving to root directory, tips please

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
dwest

[SOLVED]Moving to root directory, tips please

Post by dwest »

This is the first time I've used CMSMS.
All went very well. Very easy to use and very intuitive. (Kudos to the CMSMS developers!)

I've completely rebuilt a client's website in CMSMS in a subdirectory of their site called cmsmadesimple.

The client is satisfied and now I need to move the CMSMS site to the root, replaceing their existing site. I know of course that all files in the cmsmadesimple subdirectory need to be moved to the root exactly as structured and that the existing site files must be removed.

My questions are:

CMSMS "thinks" it is residing in the subdirectory cmsmadesimple. I will now need it to "think" it resides in the root once I move it.

Do I need to search and replace all url references in the database?
Are there other database  content tweaks I need to do?
Are there other settings in CMSMS that need to be changed once I move it or prior to moving it to the root?

Anyone who knows (and preferably has done it), please advise.

Thanks much!
Last edited by dwest on Fri Aug 31, 2007 4:56 am, edited 1 time in total.
dwest

Re: Moving to root directory, tips please

Post by dwest »

Disregard  ::)
Did a little searching in the forum and found the answer. Didn't know what exactly to search for originally.

Searched on "move to root" and found plenty of previous posts.

Sorry!

Thanks for reading the post anyway.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Moving to root directory, tips please

Post by Dr.CSS »

Hello dwest

Welcome to CMSMS, the worlds greatest CMS... ;) imho...

Do you mind telling how you did it, and could you go to your original post up top and hit the modify button and add [solved] to the subject line...

thanx...
dwest

Re: [SOLVED]Moving to root directory, tips please

Post by dwest »

Hi Mark,
Sure!

I haven't actually done it yet but other posts here repeatedly indicate that one simply moves the files and folders in the subdirectory to the root directory and then edits the url paths in the config.php file to reflect the location as being the root directory.

Of course one needs to remove the existing site from the root in order to keep things tidy. IMHO this is best done prior to moving the CMSMS into the root. But of course there are sometimes reasons to leave the existing site in the root while still moving CMSMS in there too.

That's not a problem if the existing site is straight HTML (i.e. the home page is index.html or home.html) then you can even leave it in the root without disturbing CMSMS or vice versa. Just change the original site's index.html or home.html to some other name so the browser ignores it (such as old_site_index.html etc.).

One little problem though if the two are to coincide in the root. You must not have any other config.php file in that root (for some other web package like phpAdmin etc.) lest it be overwritten when moving CMSMS into the root. Two files of the same name can't exist together obviously. :)

BTW, that happens to be handy as a final testing of the new CMS site (again, only if the original site is straight HTML).
Assuming the old site and the new CMSMS site reside in the root together, if too many bug-a-boos or errors are discovered in the content of the new CMS site after you move it, then simply change that old site filename back to index.html to get the old site back in a flash. (long sentence! sorry!)
Then fix the boo-boos on the CMS site and once again change that index.html to some other name. Repeat until all souls involved are absolutely certain everything is perfect.

Then...remove all the files in the root that are associated with the old site. Be sure to do this eventually or you will be very confused upon gazing at all the files in that root folder when you return to it at some point in the future. (which ones are old, which ones are CMSMS files Huh CAn I delete this? Can I delete that?) Tidyness is essential.

Hope this helps. Again, search the forum for "move to root". Bunches of posts already exist.
Last edited by dwest on Fri Aug 31, 2007 5:33 am, edited 1 time in total.
Pierre M.

Re: [SOLVED]Moving to root directory, tips please

Post by Pierre M. »

dwest wrote: One little problem though...
Hope this helps.
Hello, thank you for the feedback.

On the "moving to root" topic the mod_rewrite fan I am wants to suggest a possibility to blast the "little problem" : URL rewriting can internally add the install folder without the Internet noticing. Hence no need to move, freedom to organise your w3 root folder and software separation.

On the "moving from old HTML" topic there is a howto in the documentation. I find its procedure close to the one you describe. If you like CMSms, may be you can use it to convert relatives to it ;)

Have fun with CMSms

Pierre M.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [SOLVED]Moving to root directory, tips please

Post by Dr.CSS »

Nice write up dwest...
Locked

Return to “CMSMS Core”