moving from development to active

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
Ejohnston

moving from development to active

Post by Ejohnston »

Hello, i just started working with cmsms and i created an replacement for my companies current site. the replacement is sitting at mysite.com/cmsmadesimple however now that the mock up is complete i need it to answer to mysite.com instead of mysite.com/cmsmadesimple im sure that this is a common enough problem so im hoping someone here will know where i can find the information on how to do that.
jatinder
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 12, 2007 1:49 pm

Re: moving from development to active

Post by jatinder »

I do this manually:
  • Edit the config.php file and set the paths. The file is pretty self explanatory and you should be able to fgure out which paths to change and what values to set.
  • Download a SQL dump of your database
  • Search and replace all instances of mysite.com/cmsmadesimple with mysite.com in the SQL file
  • Populate the database with the new SQL file
I don't know if there is a better way to do this. I have used this often to move sites from staging server to live server.
Last edited by jatinder on Wed Jun 27, 2007 5:37 am, edited 1 time in total.
cyberman

Re: moving from development to active

Post by cyberman »

There's a section in wiki for that

http://wiki.cmsmadesimple.org/index.php ... New_Server

Another way could be to run install procedure WITHOUT writing database once again (step 4). You have only to clear config.php. New pathes will be found automatically.
jatinder
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 12, 2007 1:49 pm

Re: moving from development to active

Post by jatinder »

The wiki does not mention anything about replacing the URLs in the database dump. This is important. Otherwise you will end up with broken links and images with wrong source paths.

Shifting CMSMS from one server to another is pretty simple and mostly just involves transferring the files. You need to be careful only of two things:

1. Editting the config.php file.
2. Replace the URLs in the SQL dump.
cyberman

Re: moving from development to active

Post by cyberman »

jatinder wrote: The wiki does not mention anything about replacing the URLs in the database dump. This is important. Otherwise you will end up with broken links and images with wrong source paths.
Yes you were right - but if you use relative URL (like default CMSms install) this should be no problem  ;).
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: moving from development to active

Post by Deblus »

I posted a very similar question ia a different thread and Pierre's resonse here worked perfectly

http://forum.cmsmadesimple.org/index.ph ... l#msg64422
jatinder
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 12, 2007 1:49 pm

Re: moving from development to active

Post by jatinder »

Yes you were right - but if you use relative URL (like default CMSms install) this should be no problem
Well, on my default install, the WYSIWYG editor always uses absolute paths for internal links as well as image source paths.
Locked

Return to “CMSMS Core”