Develop reproduction of current PrestaShop web site

by:

Web Development

Typically when PrestaShop is set up, the server domain, folder and many others are stored in PrestaShop database and parameters. Therefore it results in being frantic to develop reproduction of current PrestaShop web page because all URL configuration are pointing to outdated web page location in database. So in this article we will communicate about methods to transfer or create reproduction of current PrestaShop web site on a different server or folder in same server.

There are 5 measures demanded to build reproduction of present PrestaShop website:

  • Copy PrestaShop folder to goal place
  • Prepare databases backup and set up on new databases
  • Update new URL in database and PrestaShop data files
  • Update new databases details in PrestaShop information
  • Apparent cache

Action 1 : Duplicate PrestaShop folder to new locale:

You have to have to copy all files from PrestaShop root folder to new area. For case in point, If your aged PrestaShop files are in /public_html/ folder and the new server folder is /community_html/newprestashop, then you need to copy every single file from /community_html and copy to /general public_html/newprestashop.

From this action, you will come to a decision physical_uri of your new PrestaShop. The bodily URI is the relative route of PrestaShop root folder from server root folder. In earlier mentioned instance, if the server root folder is /general public_html/ and you are copying PrestaShop in /general public_html/newprestashop/, then the physical URI is “/newprestashop/“. The physical URI is included to area to develop base URL of PrestaShop site.

Action 2 : Prepare databases backup and put in on new database

In this stage, you will duplicate the database from previous PrestaShop databases to your new databases. The easiest way to do this is to build database backup from old PrestaShop backoffice. Immediately after backup is made, create a new databases in new place and import the backup file. This will duplicate all information from outdated databases to new databases.

Exploring for an skilled
Prestashop Firm ?
Study Much more


Also, you will get the database facts for new PrestaShop site duplicate from this action:

  • Databases host
  • Database title
  • Login username
  • Password

Step 3 : Update new URL in database and PrestaShop information

Due to the fact you previously have area of your server and actual physical URI for new PrestaShop place, you need to have to update these particulars in database and PrestaShop documents.

  • To update the URLs in databases, you require to update values in two tables: store_url and configuration.
    • Login to new database
    • Open up store_url table, you will see one particular row with aged PrestaShop domain and actual physical URI
    • update this table row with new area in domain and area_ssl and bodily URI in bodily_uri discipline.
    • Open up configuration desk and research for “PS_Shop_DOMAIN” and “PS_Shop_Domain_SSL” in name column.
    • Update your area in worth for these names in configuration table.
  • Last of all, you have to have to update domain in htaccess file in PrestaShop root directory.
    • Open .htaccess file situated in new PrestaShop folder.
    • You will see outdated PrestaShop area just about everywhere in htaccess file.
    • Alter the old area to new area.

Step 4 : Update new databases details in PrestaShop files

The new database specifics should be updated in the documents to make certain the new PrestaShop employs the new databases. To update new database particulars:

  • Open /application/config/parameters.php file.
  • You will see a checklist of options for PrestaShop along with database facts like in the screenshot:
image-20
  • Update database_host, database_port, databases_title, database_consumer and database_password in the respective fields.

Just after these measures are done, the new PrestaShop is completely ready to use the new databases.

Step 5 : Obvious cache

This phase is to make certain the previous PrestaShop cache does not conflict with new PrestaShop options. Be sure to delete /var/cache/dev and /var/cache/prod folders from new PrestaShop root folder.

Soon after all earlier mentioned methods are performed, the new PrestaShop reproduction web page is prepared. This PrestaShop will have everything from aged PrestaShop including all knowledge, all modules and all file modifications (if any) also.

Which is all about how to produce replica of existing PrestaShop site. If any challenge or question in the higher than system, make sure you come to feel free of charge to let us know in the remark section.

I would be content to aid.

Also, you can check out our PrestaShop Advancement Companies and a significant array of high quality PrestaShop Modules.

For any doubt speak to us at [email protected].

Leave a Reply

Your email address will not be published.