[SOLVED] Major problems with server switch

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

NaN wrote:
What root path is set in the config.php?
It needs to point to that path where your cms installation is.

I don't understand the problem.
You changed the folders when moving to another server -> so you need to adapt the config.php to point the root_path to the new location.
The config.php file has been changed to reflect the new root_path of the new server which in this case is \htdocs\public_html\content.  I've changed everything in there but it's not had the desired effect.
Dr.CSS wrote: If you moved it and didn't clear cache b4 and now have problems with paths...

As long as your permissions of folders in public_html are correct, modules, tmp, tpm/cache, tmp/templates_c, then put the install folder from the version it is, if you don't have it you can go to http://dev.cmsmadesimple.org/project/files/6#package-1 and DL the one it is unpack and puit the install folder back in them run install but ON STEP 5 UNTICK THE CREATE TABLES AND INSTALL DEFAULT CONTENT at the bottom after inputting the DB info and this will recreate the config.php w/o screwing up all the content, templates, etc...
Yep I didn't clean the cache (I don't think) although I may have deleted the file in tmp/cache.  I'll try the install folder idea and see if that works tonight.  Which folder do I need to put the install folder into?  Is it the base directory on the new server (in this case htdocs), or is it the public_html folder?
NaN

Re: Major problems with server switch

Post by NaN »

It is the same folder you put your CMS into.
"Clearing the cache" does not just mean "delete the content of tmp/cache" but "delete the content of tmp/templates_c" as well ;)
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

NaN wrote:
It is the same folder you put your CMS into.
"Clearing the cache" does not just mean "delete the content of tmp/cache" but "delete the content of tmp/templates_c" as well ;)
I know the folder question does sound a bit dumb so I apologise for that but I didn't do the original installation on the old server, I just copied all the files (andand folders over from the old server to the new server (and then obviously amended config.php) so I'm not sure on exactly how the people who set the old system up did it (they also have created a www folder in the same directory as the public_html folder and the two seem identical which is one issue that's confusing me).  So I'm just trying to iron out the confusions I have!

I did delete the content of the tmp/templates_c folder as well.  I think I did that one before tmp/cache.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Major problems with server switch

Post by Dr.CSS »

Some host have a public_html and a www so you put your site into public_html and it gets auto duplicated to the www folder so put the install into public_html folder and run it...
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

As an aside, I've just turned debug on and got this at the bottom of the admin page for Modules, does it mean anything?

Debug: (0.267011) - (1384376)
done loading filesDebug: (2.348305) - (2076284)

(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs
Error (0):
Debug: (5.282687) - (2137352)

(mysql): SELECT * FROM cms_userplugins
Error (0):
Debug: (6.299771) - (4256784)

(mysql): SELECT * FROM cms_modules ORDER BY module_name
Error (0):
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

I've downloaded the files for 1.24 and from that taken the install folder and placed it in public_html.

However, when I try and run /public_html/install/index.php I get the following error:

Warning: require_once(/data/9/1/60/127/1712127/user/1847704/htdocs/public_html/fileloc.php) [function.require-once]: failed to open stream: No such file or directory in /data/9/1/60/127/1712127/user/1847704/htdocs/public_html/install/index.php on line 28

Fatal error: require_once() [function.require]: Failed opening required '/data/9/1/60/127/1712127/user/1847704/htdocs/public_html/fileloc.php' (include_path='.:/usr/services/vux/lib/php') in /data/9/1/60/127/1712127/user/1847704/htdocs/public_html/install/index.php on line 28

Any ideas?
NaN

Re: Major problems with server switch

Post by NaN »

1.24 ???
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

NaN wrote:
1.24 ???
That's what it says at the bottom of the admin panel so that's what I'm guessing is the version installed.  Again, I've just copied and pasted it over from the old server.

How would I go about upgrading?
Peciura

Re: Major problems with server switch

Post by Peciura »

NaN

Re: Major problems with server switch

Post by NaN »

There seems to be some massive file permission issue if you even cannot include the fileloc.php from the install dir.
What is the server configuration?
Is the safe_mode turned on?
What server is it?
(PHP version etc. - do some google for "phpinfo()" )

Do not upgrade without to check the system requirements.
(You cannot just downgrade)
Last edited by NaN on Sat Jun 19, 2010 10:11 am, edited 1 time in total.
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

NaN wrote:
There seems to be some massive file permission issue if you even cannot include the fileloc.php from the install dir.
What is the server configuration?
Is the safe_mode turned on?
What server is it?
(PHP version etc. - do some google for "phpinfo()" )

Do not upgrade without to check the system requirements.
(You cannot just downgrade)
I think I may have put the install folder in the wrong place as the fileloc.php file isn't in htdocs/public_html/fileloc.php.  It's in htdocs/public_html/content/fileloc.php.  So I'm wondering if I should have put the install folder in htdocs/public_html/content instead of htdocs/public_html.

Is that right?  All I did was download the zip file for CMS 1.24, take out the install folder from that, and drop it into htdocs/public_html.
uniqu3

Re: Major problems with server switch

Post by uniqu3 »

You should take a look at folder structure in your .zip file, after that go to your webserver and look for the same structure, when you find it this is the place to upload the install folder.
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Re: Major problems with server switch

Post by TwittersPVFC »

Apologies for taking so long to reply, but the install did work and the site is now working, so thanks everyone for your help with this.  One less stress off my mind!!
Post Reply

Return to “Modules/Add-Ons”