Page 1 of 1

[SOLVED] Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 10:46 am
by JimboDavies
I am banging my head against a brick wall with this - any help gratefully received!

I'm trying to move http://www.stormforce.biz from it's shared hosting (it's using too many resources, and the products menu keeps getting halted) to a new VPS, on Heart Internet. The VPS is running CentOS, and cPanel. The old one is with Dreamhost, and is on whatever hacked control panel they're running, OS unknown.

so, let's look at where I'm at currently:

With nothing on the new server etc, I created a new database and user. On the old server, I did an export of the whole CMS database, and then imported this database onto the new server.

On the old server, I performed a backup to tarball of the whole site. I then SFTP'd this across to the new server, and extracted it. I manually modified config.php to contain the correct file paths (I checked using a PHP file path script that worked out the full path) and CMS username and locations.

Now, if I try and access the site, I get site down for maintenance. If I try and access the admin panel, I get
Fatal error: Class 'Smarty_CMS' not found in /home/storm/public_html/lib/classes/class.CmsApp.php on line 383
So, I then tried renaming my config file. This meant when I went to the site, it automatically gave me the install option. I performed an install that didn't create any database tables etc, and then I got the admin panel. However, the admin panel had no graphics/layout, and any username and password I tried (both old and existing) failed to work - I'm not sure what I should have put into all the boxes during the install process, so I just kept them all the same as for the last site.

Other things I have tried - using wget to dump the tar.gz of the CMS Made Simple Files on to the server and extracting those - no joy.

Any suggestions would be gratefully received?

Re: Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 11:26 am
by JimboDavies
I suspect I've answered my query... possibly if I had used the install files from the latest version it might have gone better! We try again...

Re: Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 11:47 am
by JimboDavies
That hasn't helped unfortunately - whatever I try and do, I get the error
Fatal error: Class 'Smarty_CMS' not found in /home/storm/public_html/lib/classes/class.CmsApp.php on line 383
If I try and go to upgrade.php, that's what I get. If I go to the install directory, I get the first page, then after submitting, that's what I get.

Aaaargh!

Re: Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 11:59 am
by Rolf
You tried to clear cache? That is delete all files in folder /tmp/templates_c?

Rolf

Re: Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 12:08 pm
by JimboDavies
I did clear the cache, yes. I've managed to get it working - I'd made some errors in the config.php file. It's all up and running now, however I'm getting the following two errors at the top of each page:
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in /home/storm/public_html/lib/classes/class.ContentBase.php on line 531

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in /home/storm/public_html/modules/ScriptDeploy/event.Core.ContentPostRender.php on line 1
Any thoughts of those?

Re: Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 12:24 pm
by Rolf
Need set the correct time zone in config.php. Time zone from server!

Re: Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 12:41 pm
by JimboDavies
Cheers Rolf! So, that's the line:

Code: Select all

$config['timezone'] = '';
What format does the timezone get added in? You say the Server Timezone - how do I find that out?

Thanks!

Jimbo

Re: Moving from shared hosting to VPS

Posted: Sat Sep 29, 2012 2:13 pm
by JimboDavies
All sorted!

The problems were twofold - the Config file needed some very careful attention to get everything spot on, and then I needed (as you said Rolf) to add Europe/London into the time zone.

Hopefully it should all be a bit faster now!