Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Havouza

cloned shop

Recommended Posts

Hi!

Sometimes you take out victory a little early

I have cloned our shop, meaning comied all files and dumped the sql into a new created db all on a new domain

I have changed the shop url in the table ps_shop_url, but when I go to the new domain it directly redirect me to the old shop:

What have I missed to change??

Any help apreciated

Anders

Share this post


Link to post
Share on other sites
2 minutes ago, Havouza said:

.htaccess is gone but which cache should I delete?

once you delete .htaccess you should re-create it. Have you done it?

I paste my steps (I toke it from PS forum and change it to use it in TB):

1. Copy all files via FTP
2. Duplicate database to other hoster
3. check the php settings at your new hoster!! (PS <= 1.6.1.3 is not yet PHP7 ready! so you wont see anything in these cases)
3. open Database and edit "tb_shop_url". Set the new path and domain for your new shop  (don't forget the last /)
4. edit config/settings.inc.php and set the new database access
5. delete the .htaccess file in your shops root folder
6. login to the admin backend and go to settings > seo & urls and save the path and domain properties to create a new .htaccess file (after creating the new .htaccess file you will be able to view/use the frontend of the shop, not earlier as it contains all necessary info it needs to translate the friendly urls of the shop frontend)

good luck!

Share this post


Link to post
Share on other sites
1 minute ago, Wartin said:

once you delete .htaccess you should re-create it. Have you done it?

I paste my steps (I toke it from PS forum and change it to use it in TB):

1. Copy all files via FTP
2. Duplicate database to other hoster
3. check the php settings at your new hoster!! (PS <= 1.6.1.3 is not yet PHP7 ready! so you wont see anything in these cases)
3. open Database and edit "tb_shop_url". Set the new path and domain for your new shop  (don't forget the last /)
4. edit config/settings.inc.php and set the new database access
5. delete the .htaccess file in your shops root folder
6. login to the admin backend and go to settings > seo & urls and save the path and domain properties to create a new .htaccess file (after creating the new .htaccess file you will be able to view/use the frontend of the shop, not earlier as it contains all necessary info it needs to translate the friendly urls of the shop frontend)

good luck!

all done to 5. 6 I cant do because I am directly redirected to the old shop

Share this post


Link to post
Share on other sites

OK I can now access backend and have done also number 6

But now the frontend show me a 500 Server error. 

Share this post


Link to post
Share on other sites
32 minutes ago, Havouza said:

But now the frontend show me a 500 Server error. 

well, it is a step forward. Try setting debug mode on to see what's the error about.

Share this post


Link to post
Share on other sites
37 minutes ago, Havouza said:

But now the frontend show me a 500 Server error. 

I had troubles before adding a trailing / to the url, in step 3. Double check it.

Share this post


Link to post
Share on other sites

well I will start over. I have rolled back the system because for some reason I also got a 500 on the old frontpage so now I will start over

2 hours ago, piet said:

Delete the .htaccess file and cache

 

Share this post


Link to post
Share on other sites

Hi!
Well I started from beginning but no luck

One thing I wonder is whet owner and group should the files have in the new shop. Its on the same vps, under a new domain

Share this post


Link to post
Share on other sites
8 hours ago, Havouza said:

One thing I wonder is whet owner and group should the files have in the new shop. Its on the same vps, under a new domain

I should be the same user the web server is running.

Share this post


Link to post
Share on other sites

Have you deleted cache/class_index.php

This quite often causes me a problem when cloning if I forget to remove it.

Share this post


Link to post
Share on other sites

Thanks! I have now sorted it out, I am not sure what is was but now both back and front works

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...