mojtabam Posted June 13, 2013 Share Posted June 13, 2013 Hi, I am using prestashop 1.5.4.1 on a live server. How can I duplicate it on the same server on one of subdirectories for testing purposes? Also I would like to make another website from the existing one. (I want to keep both.) What should I consider? Should I change the database name? (how should I do that?) Thank you very much, Mojtaba 1 Link to comment Share on other sites More sharing options...
mojtabam Posted June 21, 2013 Author Share Posted June 21, 2013 +1 Link to comment Share on other sites More sharing options...
musicmaster Posted June 21, 2013 Share Posted June 21, 2013 The newer versions of Mysql have a "duplicate database" function. That might be a start. Otherwise you could export the whole database as a sql file and then import it into another database. Link to comment Share on other sites More sharing options...
mojtabam Posted June 21, 2013 Author Share Posted June 21, 2013 Could you please explain the details? (I am a newbie) How can I make a new database for the one which I have made the backup? Thank you very much, Mojtaba Link to comment Share on other sites More sharing options...
musicmaster Posted June 21, 2013 Share Posted June 21, 2013 I suggest that you buy a manual and do some studying of Mysql yourself first. Link to comment Share on other sites More sharing options...
mojtabam Posted July 2, 2013 Author Share Posted July 2, 2013 Hi, I find how to export and import a databases, but how can I assign it to the new existing prestashop website? Is there any configuration file? I have some experience with joomla, and it has a .conf file which specifies what is the name of the database. Any help is highly appreciated. Thank you very much, Mojtaba Link to comment Share on other sites More sharing options...
El Patron Posted July 2, 2013 Share Posted July 2, 2013 check file config/settings.inc.php Link to comment Share on other sites More sharing options...
mojtabam Posted July 2, 2013 Author Share Posted July 2, 2013 Thank you very much for your response. If I want to duplicate a live website on the same server for testing purposes, the only thing should I do is to copy all the content in a subdirectory and duplicate the database and change the database name and also rename it in config/settings.inc.php? Is there any other requirement for duplication which I should take into account? Link to comment Share on other sites More sharing options...
El Patron Posted July 2, 2013 Share Posted July 2, 2013 you would also need to change the url of the test shop, the easiest way is to log into the back office of the test shop and change the urls in seo&urls... 1 Link to comment Share on other sites More sharing options...
mojtabam Posted July 2, 2013 Author Share Posted July 2, 2013 Thank you very much for your help. If there is no other thing to do, please kindly mark this post as solved. Link to comment Share on other sites More sharing options...
El Patron Posted July 2, 2013 Share Posted July 2, 2013 On 7/2/2013 at 5:55 PM, mojtabam said: Thank you very much for your help. If there is no other thing to do, please kindly mark this post as solved. let us know if you managed to accomplish, and we can mark solved for you Link to comment Share on other sites More sharing options...
mojtabam Posted July 2, 2013 Author Share Posted July 2, 2013 Sure, I will test it later and will report here. Link to comment Share on other sites More sharing options...
mojtabam Posted July 4, 2013 Author Share Posted July 4, 2013 (edited) Hi, I made a new database and import the first database in to it and then changed the name and user, passwords of the database in config/settings.inc.php file; Also I copied all the prestashop files in a subdirectory; But I can not login to the backend of the newly created site at www.domain.com/subdomain/admin Could you please let me know what should I do? Thank you very much Mojtaba Edited July 5, 2013 by mojtabam (see edit history) Link to comment Share on other sites More sharing options...
mojtabam Posted July 5, 2013 Author Share Posted July 5, 2013 Hi, Should I change something in the database? Or should I modify the .htaccess file? Thanks, Mojtaba Link to comment Share on other sites More sharing options...
El Patron Posted July 6, 2013 Share Posted July 6, 2013 On 7/4/2013 at 10:55 PM, mojtabam said: Hi, I made a new database and import the first database in to it and then changed the name and user, passwords of the database in config/settings.inc.php file; Also I copied all the prestashop files in a subdirectory; But I can not login to the backend of the newly created site at www.domain.com/subdomain/admin Could you please let me know what should I do? Thank you very much Mojtaba when you say you can't log in, what happens? note: typically a subdomain, if that is what you created would be subdomainname.yoururl.com for example... but make sure to detail what happens when something does not work. Link to comment Share on other sites More sharing options...
mojtabam Posted July 6, 2013 Author Share Posted July 6, 2013 Hi, Actually it does not show my new website when I type subdomain.mydomain.com or mydomain.com/subdomain. And when I type mydomain.com/subdomain/admin, it asks me to login, and when I enter those username and password which I had before, it just say: "The Employee does not exist, or the password provided is incorrect." Thanks Link to comment Share on other sites More sharing options...
mojtabam Posted July 6, 2013 Author Share Posted July 6, 2013 (edited) My main website is www.artterest.com and the newly created website is www.kado2iran.com The other problem is that, there is no image in the newly created website, and also I can login now to the backend. I just reset my password. Thank you very much, Mojtaba Edited July 6, 2013 by mojtabam (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 6, 2013 Share Posted July 6, 2013 try this: from back office-->preferences-->seo & urls scroll down to 'set up urls'. Set 'Friendly URL's' to no and save Then set 'Friendly URL's' to yes and save clear your browse cache and cookies navigate to your front office and see if any better results (i.e. non 404 when clicking on a category). as for images, make sure that your files made it to the new site. I am not strong is this area but regnerating thumbnails may be a good thing to try. 1 Link to comment Share on other sites More sharing options...
mojtabam Posted July 6, 2013 Author Share Posted July 6, 2013 Boom. It is fixed now. Thank you very much for your help. Please kindly mark as solved. Link to comment Share on other sites More sharing options...
Recommended Posts