Moving C5 Site to new Directory on Same Server
Permalink
Moving C5 Site to new Directory on Same Server
Hi there -
I'm a C5 novice and am building one of my first few sites on the platform.
Site was located athttp://FirstDomain.com/concrete... and I was attempting to copy it to the final destination athttp://SecondDomain.com (in the same hosting account).
I exported my database from the existing site, made a new database and successfully imported it in. I copied all the files making sure nothing was left out....and then edited the site.php file accordingly. I did forget to empty my cache before the file transfer so deleted manually after it had completed (as well as the files/tmp contents). I edited my .htaccess file accordingly to point directly to the Root folder. (RewriteBase / )
When I attempted to pull up the site, all the content loaded, however there was a blank white bar at the top of the page where the dashboard should be and my drop menu's no longer worked. Login page would bring me bak to homepage. However, I Accessed Settings direct through URL and disabled Pretty URL's, which didn;t help the drop menus or dashboard...The one link on my Nav with no drop menu worked and pointed to the right page....
I then decided to point the site back to the original Database that was created for the existing site so that both pointed to the same database and All worked fine. Including the menus and dashboard.
I'm curious where did I go wrong?!?! If I still want to create a NEW database and import in the existing site (leaving the first one untouched) what should i change in this process. I was baffled it didn't work after following the instrcutions so carefully. (http://www.concrete5.org/documentation/installation/moving_a_site/... ) & (http://www.concrete5.org/documentation/how-tos/developers/how-to-move-a-site-from-1-directory-on-a-server-to-a-new-directo/)
Can anyone please help me understand this? Thanks in advance.
On another note, Was going to attempt to implement the cms1/cms2 idea from this link (http://www.concrete5.org/documentation/how-tos/developers/organise-your-concrete5-web-space-for-risk-free-upgrades/) but wasnt sure the most reliable way to point a domain to a subfolder through the host as its mentioned. Any suggestions for me? Thanks so much
~Trent
Hi there -
I'm a C5 novice and am building one of my first few sites on the platform.
Site was located athttp://FirstDomain.com/concrete... and I was attempting to copy it to the final destination athttp://SecondDomain.com (in the same hosting account).
I exported my database from the existing site, made a new database and successfully imported it in. I copied all the files making sure nothing was left out....and then edited the site.php file accordingly. I did forget to empty my cache before the file transfer so deleted manually after it had completed (as well as the files/tmp contents). I edited my .htaccess file accordingly to point directly to the Root folder. (RewriteBase / )
When I attempted to pull up the site, all the content loaded, however there was a blank white bar at the top of the page where the dashboard should be and my drop menu's no longer worked. Login page would bring me bak to homepage. However, I Accessed Settings direct through URL and disabled Pretty URL's, which didn;t help the drop menus or dashboard...The one link on my Nav with no drop menu worked and pointed to the right page....
I then decided to point the site back to the original Database that was created for the existing site so that both pointed to the same database and All worked fine. Including the menus and dashboard.
I'm curious where did I go wrong?!?! If I still want to create a NEW database and import in the existing site (leaving the first one untouched) what should i change in this process. I was baffled it didn't work after following the instrcutions so carefully. (http://www.concrete5.org/documentation/installation/moving_a_site/... ) & (http://www.concrete5.org/documentation/how-tos/developers/how-to-move-a-site-from-1-directory-on-a-server-to-a-new-directo/)
Can anyone please help me understand this? Thanks in advance.
On another note, Was going to attempt to implement the cms1/cms2 idea from this link (http://www.concrete5.org/documentation/how-tos/developers/organise-your-concrete5-web-space-for-risk-free-upgrades/) but wasnt sure the most reliable way to point a domain to a subfolder through the host as its mentioned. Any suggestions for me? Thanks so much
~Trent
Sorry for Double Post ! Forums were moving slow this evening.
I usually follow the below steps:
1. Create a fresh install of C5.
2. In old site; Clear cache, disable pretty url and clear statistics tables from database.
2. Then backup the old database.
3. Backup the old files except main concrete folder in root and the site.php file under config.
4. Put the backed up files into the new install.
5. Import the old database and point it to the site by editing the site.php
6. Clear cache, run automated job once and enable pretty url.
That's it. There may be several great how-to available in marketplace but I usually follow my above steps to move & it works fine all the time I have attempted it.
Rony
1. Create a fresh install of C5.
2. In old site; Clear cache, disable pretty url and clear statistics tables from database.
2. Then backup the old database.
3. Backup the old files except main concrete folder in root and the site.php file under config.
4. Put the backed up files into the new install.
5. Import the old database and point it to the site by editing the site.php
6. Clear cache, run automated job once and enable pretty url.
That's it. There may be several great how-to available in marketplace but I usually follow my above steps to move & it works fine all the time I have attempted it.
Rony
Thanks for your reply Rony -
I'm doing a few more attempts at switching this over this morning, one of which I will try your method. It just seems a fresh install of the platform would be unnecessary? Especially if updates and versions of c5 become an issue.
Another method I tried was to empty the cache and turn off pretty url's then re-export the database from original site and import into brand new database. Then I linked the database to new site and I'm still having same issues including drop menus not working and a blank white bar at top of screen. Heres the URL of the NEW site that isn't functioning proper ->http://widabi.com/cmsTest/
Is there any reference within the database that would need to be changed? I had a suggestion that some CMS' require you switch a few things within database so that it points properly to new location, but nothing about this in documentation?
All files are there in proper configuration & permissions, database was imported successfully and it appears to be connecting fine, .htaccess changed to reflect new file config, what did i miss?....Not sure where I went wrong!
I really appreciate your help. Original site is atwww.www.trentonbranson.com/concrete... in case you want to see it functioning as it should.
Thanks again.
~T
I'm doing a few more attempts at switching this over this morning, one of which I will try your method. It just seems a fresh install of the platform would be unnecessary? Especially if updates and versions of c5 become an issue.
Another method I tried was to empty the cache and turn off pretty url's then re-export the database from original site and import into brand new database. Then I linked the database to new site and I'm still having same issues including drop menus not working and a blank white bar at top of screen. Heres the URL of the NEW site that isn't functioning proper ->http://widabi.com/cmsTest/
Is there any reference within the database that would need to be changed? I had a suggestion that some CMS' require you switch a few things within database so that it points properly to new location, but nothing about this in documentation?
All files are there in proper configuration & permissions, database was imported successfully and it appears to be connecting fine, .htaccess changed to reflect new file config, what did i miss?....Not sure where I went wrong!
I really appreciate your help. Original site is atwww.www.trentonbranson.com/concrete... in case you want to see it functioning as it should.
Thanks again.
~T
I see a few issues.
Try putting a blank .htaccess file in the cmsTest folder and toggling Pretty URL's off and back on again. This should let concrete5 set itself up properly.
You have a lot of links that are hard-coded to the old trentonbranson site including some js scripts. These scripts should be called with something like:
I also don't like storing images in '[root]/files/widabi/images/...'
The 'files' folder is almost like a system folder so I would stay out of there. Storing your images in there is a non-standard practice so it's possible that some how-to's will tell you that you can delete stuff in there and I'd hate to see someone delete the 'wadabi' folder.
Try putting a blank .htaccess file in the cmsTest folder and toggling Pretty URL's off and back on again. This should let concrete5 set itself up properly.
You have a lot of links that are hard-coded to the old trentonbranson site including some js scripts. These scripts should be called with something like:
<?php echo $this->getThemePath();?>/js/your-script.js
I also don't like storing images in '[root]/files/widabi/images/...'
The 'files' folder is almost like a system folder so I would stay out of there. Storing your images in there is a non-standard practice so it's possible that some how-to's will tell you that you can delete stuff in there and I'd hate to see someone delete the 'wadabi' folder.
mhawke -
Thanks so much for trying to help. I'm clearly still learning the environment and getting a feel for things. I feel its important I have the idea of how to move one of these sites down pat if I hope to continue building on the platform.
I did as you suggested and reset the Pretty URL's.....my problem with the drop menus not working and a blank bar at the top of the page is still there, however I've noticed since my last posts that its intermittent and sometimes works for a short period of time. Another thing I'm noticing whenever the drop menus stop working, along with the dashboard, my RSS blog feed also gives this error -
"Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 1966080 bytes) in /hsphere/local/home/camerawo/widabi.com/cmsTest/updates/concrete5.6.1.2/concrete/libraries/3rdparty/simplepie.php on line 8426"
I"m sure the database is connecting fine, and that all my files were present as they were for the existing site....I've also stated to remove the js links to the old site - and will get my images in another place. Do you think all my problems with the menus and dashboard could be stemming from those couple of things you mentioned?
I tried a FRESH install of c5 to this URL ->http://widabi.com/cms2/ and then copied all my files over and relinked the database, as Rony suggested, however its doing the same thing. Very intermittent on menus, dashboard, and RSS feed working and then I'll switch pages and it all breaks....
Thanks again, i really appreciate it. Do you think having two concrete5 installs pointing to the same database would cause any issues such as what I'm experiencing?
~T
Thanks so much for trying to help. I'm clearly still learning the environment and getting a feel for things. I feel its important I have the idea of how to move one of these sites down pat if I hope to continue building on the platform.
I did as you suggested and reset the Pretty URL's.....my problem with the drop menus not working and a blank bar at the top of the page is still there, however I've noticed since my last posts that its intermittent and sometimes works for a short period of time. Another thing I'm noticing whenever the drop menus stop working, along with the dashboard, my RSS blog feed also gives this error -
"Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 1966080 bytes) in /hsphere/local/home/camerawo/widabi.com/cmsTest/updates/concrete5.6.1.2/concrete/libraries/3rdparty/simplepie.php on line 8426"
I"m sure the database is connecting fine, and that all my files were present as they were for the existing site....I've also stated to remove the js links to the old site - and will get my images in another place. Do you think all my problems with the menus and dashboard could be stemming from those couple of things you mentioned?
I tried a FRESH install of c5 to this URL ->http://widabi.com/cms2/ and then copied all my files over and relinked the database, as Rony suggested, however its doing the same thing. Very intermittent on menus, dashboard, and RSS feed working and then I'll switch pages and it all breaks....
Thanks again, i really appreciate it. Do you think having two concrete5 installs pointing to the same database would cause any issues such as what I'm experiencing?
~T
mhawke,
Thanks for your time replying, I really appreciate it.
Your suggestions helped me fix the broken dashboard and javascript elements.
The site seems to be back up and running properly after starting fresh and removing all my own javascript coding.
Where would you suggest being the best place to store my own files within the c5 folder system? Or perhaps links to resources that would be good for me to read?
Thanks again.
T
Thanks for your time replying, I really appreciate it.
Your suggestions helped me fix the broken dashboard and javascript elements.
The site seems to be back up and running properly after starting fresh and removing all my own javascript coding.
Where would you suggest being the best place to store my own files within the c5 folder system? Or perhaps links to resources that would be good for me to read?
Thanks again.
T