Page 1 of 1
moving from development to active
Posted: Tue Jun 26, 2007 11:51 pm
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.
Re: moving from development to active
Posted: Wed Jun 27, 2007 5:36 am
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.
Re: moving from development to active
Posted: Wed Jun 27, 2007 6:55 am
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.
Re: moving from development to active
Posted: Wed Jun 27, 2007 7:31 am
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.
Re: moving from development to active
Posted: Wed Jun 27, 2007 8:26 am
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Ā

.
Re: moving from development to active
Posted: Wed Jun 27, 2007 11:10 am
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
Re: moving from development to active
Posted: Wed Jun 27, 2007 1:58 pm
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.