Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Hosting Migration - Guide?
Author « Topic »  

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/07/2022 :  04:04:10  
I'm having to migrate from TSOhost to 20i

Is there guide or any information on what I need to change/edit to successfully migrate this instance?

Any help massively welcomed!

Vince
Administrator

42466 Posts

Posted - 11/07/2022 :  08:12:44  
Hi IfOnly
There isn't really a guide but what you need to do is (obviously I guess) copy all the files. Then you need a copy of your database and you need to recreate that database on the new host. Then make sure you change the database connection details in vsadmin/db_conn_open.php to point to the new database. Copying the database is best done via phpMyAdmin which is available on most hosts and will give you an Export and Import option, where just using the defaults seems to do a good job.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Steved
Ecommerce Template Guru

United Kingdom
1022 Posts

Pre-sales questions only
(More Details...)

Posted - 11/07/2022 :  11:35:02  
Hi,

Most hosts offer free migration and I see 20i does too.
Might be easier to get them to do it for you.

[url]https://www.20i.com/website-migration[/url]

Steve

Edited by - Steved on 11/07/2022 11:39:40

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/08/2022 :  06:44:14  
Did just that. Copied the files, exported the DB and edited vsadmin/db_conn_open.php

Had a "too many redirects" issue which was a simple .htaccess edit and all done.

Thanks for the replies

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/10/2022 :  08:14:15  
Website up - order taken. However can't login

Getting this :
Database Connect Error (2002) Connection timed out
You need to set your database connection in vsadmin/db_conn_open.php
For help setting your database connection please see...
http://www.ecommercetemplates.com/phphelp/ecommplus/instructions.asp#dbconn
We also have a support forum here...
http://www.ecommercetemplates.com/support/

Help?

Vince
Administrator

42466 Posts

Posted - 11/10/2022 :  11:37:22  
Can I ask what you added to the .htaccess file to cure the "Too many redirects" error? I'm just wondering if you're accessing the old site by mistake.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/11/2022 :  01:56:45  
# Added automatically by Gridhost panel Saturday 24th of November 2012 09:22:14 AM
Options -Indexes
RewriteEngine On
#RewriteCond %{HTTP_HOST} tavistockbutchers\.co\.uk [NC]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://www.tavistockbutchers.co.uk/$1 [R,L]
SuPHP_ConfigPath /var/sites/t/tavistockbutchers.co.uk/public_html/php.ini
AddType x-httpd-php56 .php

Vince
Administrator

42466 Posts

Posted - 11/11/2022 :  02:27:04  
Ok, I think I see what is happening and I think it's because you have a hidden "vsadmin" directory but you haven't updated the db_conn_open.php file in that hidden directory.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/14/2022 :  07:56:33  
Ahhh ok - its seems I have two db_conn_open.php

One that sits in public_html/xxxvsadmin
and another that sits in: public_html/vsadmin

I just edited the version in public_html/xxxvsadmin to reflect the new dbase/user details hower now it redirects to https://www.tavistockbutchers.co.uk/vsadmin/login.php and states "Login Disabled:"

Does it need a separate user?

Vince
Administrator

42466 Posts

Posted - 11/14/2022 :  14:02:15  
No, you don't need a separate user. It's just you have two copies of the vsadmin directory and one of them is set so that you can't log in to the ECT Admin. It's a security measure so that your ECT Admin is hidden. Just login via the one that is not "vsadmin". (I've edited the name by the way so it's not visible on the forum.)

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/15/2022 :  05:47:21  
I've tried to login via http://www.tavistockbutchers.co.uk/xxxxvsadmin/login.php (hidden :))

However it just redirecting to vsadmin/login.php and stating login disabled

Vince
Administrator

42466 Posts

Posted - 11/15/2022 :  08:12:15  

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/15/2022 :  08:23:12  
This is the currernt .htaccess, it was brought over from the old hosting platform, but can't see anything that would cause the redirect

# Added automatically by Gridhost panel Saturday 24th of November 2012 09:22:14 AM
Options -Indexes
RewriteEngine On
#RewriteCond %{HTTP_HOST} tavistockbutchers\.co\.uk [NC]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://www.tavistockbutchers.co.uk/$1 [R,L]
SuPHP_ConfigPath /var/sites/t/tavistockbutchers.co.uk/public_html/php.ini
AddType x-httpd-php56 .php

Phil
ECT Moderator

United Kingdom
7622 Posts

Posted - 11/15/2022 :  08:56:14  
Hi,

First of all edit your vsadmin/includes.php file and remove the following lines below

$notifyloginattempt=TRUE;
$disallowlogin=TRUE;

or just comment them out like this
//$notifyloginattempt=TRUE;
//$disallowlogin=TRUE;

Then make sure you can login here - https://www.tavistockbutchers.co.uk/vsadmin/login.php

Then for security add the following line to your vsadmin/includes.php

$loginkey="myloginkey";

change myloginkey to anything you like really, so if you set it to yournewkey

Then browse to https://www.tavistockbutchers.co.uk/vsadmin/login.php?loginkey=yournewkey

You can then delete the renamed folder because the vsadmin is now secure and cannot be browsed to without knowing the key




*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

IfOnly
Advanced Member

235 Posts

Pre-sales questions only
(More Details...)

Posted - 11/16/2022 :  02:44:49  
These parameters are not in vsadmin/includes.php (or xxxvsadmin/includes.php)

$notifyloginattempt=TRUE;
$disallowlogin=TRUE;

Phil
ECT Moderator

United Kingdom
7622 Posts

Posted - 11/16/2022 :  03:01:41  
That's strange

Can you click on my name and send me ftp details so I can see what's going on?

Or just email them over to phil at bettapages dot com



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 11/16/2022 03:12:03
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000