[SOLVED] Moving site from sub directory -I have done this...

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.
Locked
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

[SOLVED] Moving site from sub directory -I have done this...

Post by fearmydesign »

>:( I have done this soooo many times, I really don't know what is going on here, I have tried many things and nothing is working.

So, I installed 1.11.8 as a brand new installation under a sub directory http://www.ciakitchens.com/cia - All I wanted to do now is move the finished site to the root (again something I have done many times). Here is what I did:

1. cleared cache from admin
2. moved all the files from html/cia to the root html/
3. that's it!! everything should have worked, but it didn't. I was getting several error I did not document, but here is what I did next;

What I tried next:
1. changed the config.php permission to writable 777
2. added the following two lines (because I read in the forum topic to try this):
$config['root_path'] = '/home/content/html/cia';
$config['root_url'] = 'http://www.ciakitchens.com/cia';
3. This didn't work either

Next:
1. I read I should use upgrade.php, so I uploaded the 'install' folder but didn't work, I get this error now:
Warning: require_once(/home/content/html/lib/misc.functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/html/install/index.php on line 33

Fatal error: require_once() [function.require]: Failed opening required '/home/content/html/lib/misc.functions.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/html/install/index.php on line 33

Threads I looked at:
1. http://forum.cmsmadesimple.org/viewtopi ... th#p300657
2. http://forum.cmsmadesimple.org/viewtopi ... te#p300539
3. http://docs.cmsmadesimple.org/moving

I followed all the instructions on moving doc. I made sure I had the correct 777 on all the corresponding folders as well (i.e. modules, tmp, tmp/templates_c, tmp/cache, uploads, uploads/images). I also tried making the config.php 777 and 644, and 444 and still nothing!

I do not have access via shell as this is basic GoDaddy shared hosting (not to mention I don't know shell commands).

Any other suggestions I can try? I haven't changed the database or anything... :-\

Lastly, I have moved the site back to http://www.ciakitchens.com/cia and it works fine... so I really don't understand why it doesn't work when I move to root directory by doing the steps mentioned above :-\
:-[

Thank you for your help
Last edited by fearmydesign on Tue Sep 17, 2013 8:25 pm, edited 1 time in total.
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: Moving site from sub directory -I have done this many ti

Post by fearmydesign »

hmmn... it looks like I fixed it... really ALL I did was to move all the files again to the root.... and waited about 15 minutes; came back and it worked!!!

Any chance there is a lag on this GoDaddy server?... so everything I was doing was correct, but just had to wait >:(

???
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: [SOLVED] Moving site from sub directory -I have done thi

Post by calguy1000 »

When moving the files you should
a: clear the cache in the site admin
b: move the files
c: adjust the config.php (may not be necessary with new versions of CMSMS).
d: clear the cache in the site admin in the new location
step a: is just a convenience, you don't really want or need all those tmp files in a .zip file when moving to a new host).

You need to clear the cache every time files are moved, or the config.php file is changed... and maybe even if the .htaccess file is changed (depending upon the rules you put in there).

Also, when testing, clear the cache in your browser.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: [SOLVED] Moving site from sub directory -I have done thi

Post by fearmydesign »

calguy1000 wrote:When moving the files you should
a: clear the cache in the site admin
b: move the files
c: adjust the config.php (may not be necessary with new versions of CMSMS).
d: clear the cache in the site admin in the new location
step a: is just a convenience, you don't really want or need all those tmp files in a .zip file when moving to a new host).

You need to clear the cache every time files are moved, or the config.php file is changed... and maybe even if the .htaccess file is changed (depending upon the rules you put in there).

Also, when testing, clear the cache in your browser.
Thank you Calguy... the only step I didn't do was the clearing cache under the 'new' location, but only because it wouldn't even let me access the admin!!... glad I have it working now. Thanks again.

By the way, I read the entire thread listed on the CMSMS Newsletter, about the CMSMS vs. WordPress conflict. Some valid points on both ends, but I stick with CMSMS... I really love what you guys (entire dev team) have done.

Cheers!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: [SOLVED] Moving site from sub directory -I have done thi

Post by Rolf »

fearmydesign wrote:the only step I didn't do was the clearing cache under the 'new' location, but only because it wouldn't even let me access the admin!!... glad I have it working now.
You can always delete the files in the folder tmp/templates_c and tmp/cache manualy

grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: [SOLVED] Moving site from sub directory -I have done thi

Post by fearmydesign »

Rolf wrote:
fearmydesign wrote:the only step I didn't do was the clearing cache under the 'new' location, but only because it wouldn't even let me access the admin!!... glad I have it working now.
You can always delete the files in the folder tmp/templates_c and tmp/cache manualy

grtz. Rolf
Ahh!! Thank you Rolf, I didn't think about that. Excellent.
Locked

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