mayday Posted November 25, 2010 Share Posted November 25, 2010 Hi all,I'm looking for help with defining all the steps necessary to create a replica of my live site and make a test environment.This much I know:1) Create a copy of the DB and give it a new name (i.e. prestashop_dev)2) Copy all files from live site to the directory of the new website domain (i.e. from www.myshop.com to www.mytestingshop.com)3) Change the /config/settings.inc.php file to point to the new test DB (The copy from step one)That's as far as I've thought it through. Can someone please elaborate?Corywww.OutdoorStore.ch Link to comment Share on other sites More sharing options...
shokinro Posted November 25, 2010 Share Posted November 25, 2010 As much as I can imagine, you have covered everything. That is pretty easy, right?If any of you site (test or service) is not at the root of your domain, you will also need to change following. I guess you also have it in your considerations.define('__PS_BASE_URI__', '/'); Link to comment Share on other sites More sharing options...
istox Posted December 19, 2010 Share Posted December 19, 2010 As much as I can imagine, you have covered everything. That is pretty easy, right?If any of you site (test or service) is not at the root of your domain, you will also need to change following. I guess you also have it in your considerations.define('__PS_BASE_URI__', '/'); define('__PS_BASE_URI__', '/'); - it is for the root directory? If my shop will be in the directory ''shop'' what I have to write? And Where I have to write down this code? Thanks for your reply! Link to comment Share on other sites More sharing options...
rocky Posted December 20, 2010 Share Posted December 20, 2010 In config/settings.inc.php, write: define('__PS_BASE_URI__', '/shop/'); Link to comment Share on other sites More sharing options...
istox Posted December 20, 2010 Share Posted December 20, 2010 Thanks for your reply and help!And.. Hi all,I'm looking for help with defining all the steps necessary to create a replica of my live site and make a test environment.This much I know:1) Create a copy of the DB and give it a new name (i.e. prestashop_dev)2) Copy all files from live site to the directory of the new website domain (i.e. from www.myshop.com to www.mytestingshop.com)3) Change the /config/settings.inc.php file to point to the new test DB (The copy from step one)That's as far as I've thought it through. Can someone please elaborate?Corywww.OutdoorStore.ch Anything else I have to do for copy a site? Link to comment Share on other sites More sharing options...
rocky Posted December 20, 2010 Share Posted December 20, 2010 You will also need to regenerate your Google Sitemap file. I think that's all you need to do, unless your base directory in config/settings.inc.php has changed. If it has, you will need to regenerate your .htaccess file and robots.txt file. Link to comment Share on other sites More sharing options...
shokinro Posted December 27, 2010 Share Posted December 27, 2010 Thanks Rocky for the support, I was on vacation and just came back today.Mayday, if you problem is solved, please mark this thread as SOLVED by adding SOLVED to the beginning to the title of your first post of the thread. Link to comment Share on other sites More sharing options...
istox Posted December 27, 2010 Share Posted December 27, 2010 Everything works. Except some images to products missed. I don't know what to do. I tried to generate .htaccess file. Didn't helped. Link to comment Share on other sites More sharing options...
shokinro Posted December 27, 2010 Share Posted December 27, 2010 please make sure your .htaccess file contains following lines, if it does not, you can add them manually.(Here assume your store is installed at /shop/) RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2$3.jpg [QSA,L,E] RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2.jpg [QSA,L,E] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/c/$1$2.jpg [QSA,L,E] Link to comment Share on other sites More sharing options...
istox Posted December 29, 2010 Share Posted December 29, 2010 Just insert that text. Changed shop to my directory. And nothing happens... I copied the site. Copied the database. And half of products are without images. Please help! Link to comment Share on other sites More sharing options...
shokinro Posted December 29, 2010 Share Posted December 29, 2010 Could you please give the URL of your site that has the problem?I would like to take look at the image URLs of broken product images. Link to comment Share on other sites More sharing options...
istox Posted December 29, 2010 Share Posted December 29, 2010 I've sent PM to you. Link to comment Share on other sites More sharing options...
istox Posted December 29, 2010 Share Posted December 29, 2010 The .htacess file looks like this. I have modified both files. 1 file in root folder of /shop/ and second in the /shop/config/SHOP - My shop dir. RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2$3.jpg [QSA,L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2.jpg [QSA,L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/c/$1$2.jpg [QSA,L,E]# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# Catch 404 errorsErrorDocument 404 /404.php Link to comment Share on other sites More sharing options...
shokinro Posted December 29, 2010 Share Posted December 29, 2010 I just took a look at your site. 1. Friendly URL is not enabled at your site, so ,maybe you should remove your .htaccess So the problem might have nothing to do with .htaccess file.2. I noticed the following two images, A is ok, B has problem.A. http://********/img/p/376-1504-home.jpg B. http://********/img/p/918-3060-home.jpgPlease confirm that image B "918-3060-home.jpg" does exist at your folder /img/p/And please also confirm that image B has the same permission setting as A. Link to comment Share on other sites More sharing options...
istox Posted December 29, 2010 Share Posted December 29, 2010 B image not exists on site hosting... Strange thing. May be ftp client? File permission to all images the same 0644 Link to comment Share on other sites More sharing options...
shokinro Posted December 30, 2010 Share Posted December 30, 2010 in this case, try to re-copy all the images should fix the problem.good luck. Link to comment Share on other sites More sharing options...
rocky Posted December 30, 2010 Share Posted December 30, 2010 Yep, it's likely your FTP client. Some clients have a limit on how many files in a directory are displayed. Since there are many images in the img/p directory, it is likely the maximum limit was reached and not all the images were copied. You should use cPanel to create a backup that includes all the images. Link to comment Share on other sites More sharing options...
istox Posted December 30, 2010 Share Posted December 30, 2010 Thanks! I will try. Link to comment Share on other sites More sharing options...
istox Posted December 30, 2010 Share Posted December 30, 2010 Ok. Thanks for your support it's working! Link to comment Share on other sites More sharing options...
rocky Posted December 30, 2010 Share Posted December 30, 2010 Great. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
istox Posted December 30, 2010 Share Posted December 30, 2010 Sorry this is not my Topic. Link to comment Share on other sites More sharing options...
rocky Posted December 30, 2010 Share Posted December 30, 2010 I didn't realise. I've added it myself. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now