pcbleu Posted October 10, 2023 Share Posted October 10, 2023 Hello I want to make a test installation of a prestashop website I made a copy of all the folders without the "cache" folder I made an sql backup and retrieve of the database with some changes in the parameters.php config file when I want to try this new test site, I obtain the current prestashop website what should I do to make the test site work? Thanks in advance Link to comment Share on other sites More sharing options...
@diegofrancesco Posted October 10, 2023 Share Posted October 10, 2023 Hello, you also need to update the domain in the test database, if you haven't already done so, and also check the .htaccess file. Link to comment Share on other sites More sharing options...
pcbleu Posted October 10, 2023 Author Share Posted October 10, 2023 Thanks for your reply I changed the values of the old domain in the _configuration table, I modified the .htaccess file but it always gives me the same result, and it results with the current website and not my tests installation Link to comment Share on other sites More sharing options...
Bill Dalton Posted October 10, 2023 Share Posted October 10, 2023 You will need to check table ps_shop_url in your database. Link to comment Share on other sites More sharing options...
Bill Dalton Posted October 10, 2023 Share Posted October 10, 2023 Another trick is to test your old domain locally by putting "127.0.0.1 old-domain.com" in your Windows host file. When not testing, just comment it out "# 127.0.0.1 old-domain.com" Link to comment Share on other sites More sharing options...
@diegofrancesco Posted October 11, 2023 Share Posted October 11, 2023 15 hours ago, pcbleu said: Thanks for your reply I changed the values of the old domain in the _configuration table, I modified the .htaccess file but it always gives me the same result, and it results with the current website and not my tests installation In addition to the ps_shop_url table as they have already written to you, do a search on all the tables in the db, I usually do this. There are several tables to update. How to do it depends on what system you use, otherwise in SQL. Link to comment Share on other sites More sharing options...
pronashit Posted October 11, 2023 Share Posted October 11, 2023 Make sure you've updated the domain in the test database, in case it hasn't been done yet, and also review the .htaccess file for any necessary adjustments. Link to comment Share on other sites More sharing options...
pcbleu Posted October 11, 2023 Author Share Posted October 11, 2023 (edited) Thanks for your suggestions I replaced every occurences of the old domain in the sql file and changed the .htaccess file I had to change the physical_uri field in the ps_shop_url table and it is OK !!! Edited October 11, 2023 by pcbleu (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted October 11, 2023 Share Posted October 11, 2023 Just to be clear for anyone finding this thread you are setting up a test server or you are moving your shop to a new domain. There are only two things you need to change. 1. If the database name has changed, update file - \app\config\parameters.php 2 update the database table ps_shop_url That's it! That will get you up and running. 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