Jump to content

Move prestashop to new domain


Recommended Posts

I am at ends witt. I have moved my prestashop from my test domain to the new domain. I did this by downloading all the prestashop files to my local hard drive, then uploading via FTP to the new domain.

I then logged in to BO and updated/changed the Domain Name and Domain Name for SSL. It worked fine, and did not redirect to the test site domain. So alls well there.

 

However, when i go to the FO, all the modules except the Featured Products are not showing. I tried using live edit to see if the modules show up there, to no avail.

 

I then tried to send it back to the test site by editing the Domain Name and Domain Name for SSL to point to the test site - PERFECT. All the modules show on the FO of the test site.

 

But i need it on the new domain, and this does not work. The modules just dont show up and the Featured Products module in the FO is not in the correct place.

 

Please, i have been trying to solve this for 2 day, and have not found any answers.

 

Any help will be appreciated

Link to comment
Share on other sites

Okay here goes nothing:

 

Update your database

 

Log into cPanel, then go to "PHPMyAdmin" and log into your PrestaShop database. Go to the table "ps_configuration" and locate the records for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL. Change these to the new domain name. Check the configuration table for any other entries that contain the old domain name and change accordingly.

 

Updating your config settings

 

Via FTP or the file manager in cPanel, modify the PHP file /config/settings.inc.php. Look for the entry for PS_BASE_URI__ and modify as necessary. For a shop located in the root, it should read:

// <![CDATA[
define('__PS_BASE_URI__', '/');
//

 

Delete (or rename) the .htaccess file on your site.

 

In our PrestaShop admin, you now need to re-generate the SEO URLs with the new domain name. Log into your PS admin, then go to "tools->generate->generate .htaccess".

 

Enabling SSL

 

If your site has a full SSL Certificate, then you can also enable this via your PS admin under "Preferences page -> Enable SSL: Yes".

Please note that PrestaShop won't work with our Shared SSL as the SEO URLs rewrite rules don't work with the server paths. For PS shops, you either need to have a Dedicated IP & your own Full SSL Certificate or you need to disable SSL.

 

Let me know if things worked out!

  • Like 3
Link to comment
Share on other sites

Ok. So i had already done all the things you mentioned above.

 

I have just triple checked each step, and all is in good order. All the url's are correct and the htaccess file regenerated. I have updated the config setting - it was already as you said it should be.

 

Unfortunately even triple doing all of the things, the FO is still not showing correctly. The modules are still missing.

 

The BO is working perfectly however, i can add, edit, delete products, or do anything else on the backend.

 

PLEASE . . . what else can i do to correct this?

Link to comment
Share on other sites

Ok. So can i delete them in the BO. Or do i need to go the my control panel and delete them there?

 

I have the shop in maintenance mode, so you wont be able to see the url unless i add your ip address.

 

www.alphaofficesupplies.co.za and the theme is clothetheme.

Link to comment
Share on other sites

Ok. . . so perhaps a new plan of action. If i uninstall the entire prestashop install and do a fresh install of prestashop . . .

 

1. will it loose the database, if so, how do i point the fresh install to the old database?

2. then install the new theme?

3. then edit (the intension is to copy and paste the already edited theme pages into the fresh theme install) the new theme?

 

So in theory, a complete new install???

Link to comment
Share on other sites

What you do can try to do is offcourse make a back-up of your database by using the tools/DB backup

 

try it out and see if it worked out for you.

If not you can always reset the back-up to its original state.

 

Let me know if you figured things out!

Link to comment
Share on other sites

Ok. I have tried fruitlessly, to sort this out.

 

List of what i have tried:

 

WHAT I DID FIRST

  1. I moved prestashop to a new domain on the same server by downloading from the test site then uploading to the new domain.
  2. Logged into cPanel, went "PHPMyAdmin" and logged into PrestaShop database. Went to the table "ps_configuration" and located the records for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL. Changed these to the new domain name. Checked the configuration table for any other entries that contained the old domain name and changed accordingly.
  3. Via file manager in cPanel, modifid the PHP file /config/settings.inc.php to
     
    define('__PS_BASE_URI__', '/');
  4. In PrestaShop admin, re-generated the SEO URLs with the new domain name. Logged iPS admin, then to "tools->generate->generate .htaccess".

PROBLEM

  1. Front office not displaying correctly. It dropped all the modules except the Featured Products Module.
  2. Clicking on the New Products, showed the products but WAY over to the left.
  3. Re - instating the default module from PS install worked, but putting it back to custom theme NO modules yet again

WHAT I TRIED SECONDLY

  1. Unistalled all the modules via the BO then deleted them via the BO.
  2. Re-installed all the modules via the BO

PROBLEM

  1. Somehow, it made it even worse.
  2. The modules were still not showing, not even the featured products.
  3. Only one module from the custom theme was now showing, but had lost all its custom styling.

WHAT I DID THIRDLY

  1. Uploaded via FTP all the files and folders from the original test site
  2. This was in the hope something went wrong with the first upload.
  3. DId exactly the same steps as in the first instance.
  4. Uninstalled the custom theme then re-installed it.

PROBLEMS

  1. The exact same thing as in the first instance
  2. No modules showing on the FO in the custom theme.
  3. Switched to default theme and all working fine
  4. Switch back to custom theme, no modules

WHAT I DID LAST

  1. Did a new install of PS on another domain.
  2. Pointed it to the old database

PROBLEM

  1. When i point it to the old database no modules
  2. Point it to the new database, no problems

Please i need help solving this. I need this site moved and cant seem to find the answer or solution anywhere.

Edited by ShauniD (see edit history)
Link to comment
Share on other sites

The last resort I can think about is to use UNIX path instead of folder paths.

 

This is how I solved one of my Paypal modules which showed all blocks wrong.

Used the UNIX path, which you can probably find on the admin of your server or ask them your path.

 

Try this out, and let me know :)

Link to comment
Share on other sites

Unfortunately your suggestion about using the UNIX path instead of folder paths did not work.

 

So what i did was a fresh install of PS with a new database.

 

I then downloaded the tables in the SQL database for the original test site and imported it into the new database via MyphpAdmin. This worked and all aspects of the site are up and running. All products loaded and functional. I copied the img folder from the test site to the new domain. However this does not work and only show "image not available"

 

And then for the BIG problem . . . the new site with the updated database is SLOW loading. And i really do mean SLOW.

 

It took about 4 minutes just to load the homepage.

 

What could be causing this?

Link to comment
Share on other sites

Hi Mike

 

Thank for the info.

Unfortunately that is the link i used when i originaly started the move.

 

I found it very comprehensive and thought all would go well.

 

And still encountered the problem.

Link to comment
Share on other sites

You can make your site a little faster by comprimating and chaching offcourse.

Ask you provider / hoster if they have Memchache PECL installed.

 

if so: click on preferences in your admin

Smart cache for javascript: CCC for Javascript

HTML minimalising: HTML minimalising after 'smarty compiler'

comprimate inline javascript in HTML: Comprimate inline javascript in HTML after 'smarty compiler'

 

and in the tab caching click on yes (if your host has Memcache PECL installed offcourse)

 

Maybe this will make the site a little faster, also try to clean your cache before doing this all..

Cheers Helldog!

Link to comment
Share on other sites

  • 1 month later...

Hi helldog2004 .

Please help me. I have installed PrestaShop on this domain http://cauciucurish.ro/anvelope-online'>http://cauciucurish.ro/anvelope-online and I want to move to http://cauciucurish.ro

I made backup of DB, I move all the files and folder to http://cauciucurish.ro . When I acces http://cauciucurish.ro I am redirect to http://cauciucurish.ro/anvelope-online'>http://cauciucurish.ro/anvelope-online

Ok, than I follow your advice to modify into the phpmyadmin my database (ps_configuration) but I can't find: PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL

I just find PS_SHOP_ENABLE and PS_SSL_ENABLED

What can I do? Please help me.

 

Thank you very much,

Viorel

Link to comment
Share on other sites

  • 7 months later...
  • 1 year later...

Hi helldog2004 .

Please help me. I have installed PrestaShop on this domain http://cauciucurish.ro/anvelope-online and I want to move to http://cauciucurish.ro

I made backup of DB, I move all the files and folder to http://cauciucurish.ro . When I acces http://cauciucurish.ro I am redirect to http://cauciucurish.ro/anvelope-online

Ok, than I follow your advice to modify into the phpmyadmin my database (ps_configuration) but I can't find: PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL

I just find PS_SHOP_ENABLE and PS_SSL_ENABLED

What can I do? Please help me.

 

Thank you very much,

Viorel

 

That table has more pages, you can find it at page 10

Link to comment
Share on other sites

  • 2 weeks later...

Help me plz!!!! . I don't know much about website devlopmentI installed prestashop from cpanel and web hosting serivce is bigrock.. I see in the end of my domain name which is www.abqashop.com/presta. I wonder why this presta word comes. I want to remove it and want to make my little changes go live on real internet. Can anybody tell me what to do? I saw videos on you tube but they talk about local host etc. I think my site is not on my computer but on prestashop server. How can I move it from prestashop server to real internet.

Link to comment
Share on other sites

  • 10 months later...
  • 10 months later...

You need to install the Prestashop on your new host.

Upload the install file into the root folder aswell and install prestashop on your new host!

 

Have you been into your database aswell?

 

You need to change two tables in order to get everything to work:

PS_SHOP_DOMAIN should be something like PS_shaunid_com (or whatever you website is called)

And this also for PS_SHOP_DOMAIN_SSL

thank you

it works for me

Link to comment
Share on other sites

×
×
  • Create New...