Jump to content
Maryando

Moving Local PrestaShop Installation to the Live Server - WAMP

Recommended Posts

Hello 

I'm testing WAMP server as I would like to develop my store locally, but first testing how the migration will go to save myself problems in later stages. Unfortunately not everything is working as it should after moving the site to a live environment. The front page and back office have a missing elements front page is all over the place no graphics just text. So definitely I'm doing something wrong. 

What I have done is:

  • I have compressed all the local PrestaShop files with zip, uploaded the zip file onto my hosting and unzipped in desired folder 
  • Edited parameters.php file updating databases name, user and password.
  • Exported my database using phpMyAdmin locally.
  • Edited my exported database with notepad++ and changed the database name
  • Created new database on my hosting and imported previously exported database. 
  • Changed shop domain, domain_ssl and physical_uri at the imported database through phpMyAdmin panel

Everything checked a hundreds of times and all seams to be correct, but store looks like there is a plenty files missing. I have check everything according to the guide from the link below and everything seams to be perfect:(

https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/backup/

Guys can you help me on this? Is anyone developing PrestaShop locally? Or maybe this is a bad practice? I'm just trying to speed up my workflow, but nothing goes the way is should. 

I will be super grateful for anyone who can help me on this. 

Many Thanks 

Best Regards

 

 

Wamp_Migration.jpg

Share this post


Link to post
Share on other sites

Think you are missing the re-generation of .htacess. Working on local instances is quite common - I do the same.

Share this post


Link to post
Share on other sites

Thank for your answer JBW

I forgot to mention this, but I have changed .htaccess file and even deleted it to test. I also cleared all smarty cache before I move my files to my hosting, but still no success.

Every single time I'm trying is the same output. 

 

Share this post


Link to post
Share on other sites

Can you post a link to your website? Does it work if pretty URLS are switched off?  It looks like the CSS files are not loaded properly. Most of the time this is caused by wrong .htaccess.

Share this post


Link to post
Share on other sites

Hi. I'm sorry for my late answer. I just wanted try last thing.

I have uninstalled WAMP serwer and istalled XAMPP to check if this issue comes from Virtual Servers, and I have the same results with both servers.

BUT

I found 1053 places in Prestashop files and 114 files with the local files path injected!
So if my Virtual Host folder was G:/mysites/site1 then this path is all over the place in my PrestaShop files.
Database tables are also ruined when edited by Notepad++ 596 lines containing the local path.

Although this is easy to change in the database using Notepad++ very hard to change in 114 presta files.
Also in database in the places where was the local path injected '/' was replaced with '\\\\' what a disaster...

So my friendly advice for everyone is staying away from virtual hosts unless you know what you are doing.
I'm closer to develop the shop on the live server than using this method again.

I'm trying to change as a bulk all the paths even in files using Notepad++ and I will see what output I will get. 

Best Regards

Edited by Maryando (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More