Skip to content

Instantly share code, notes, and snippets.

@oldlastman
Created August 11, 2020 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oldlastman/38e7a0412144cb1b7a51d259ed558ee4 to your computer and use it in GitHub Desktop.
Save oldlastman/38e7a0412144cb1b7a51d259ed558ee4 to your computer and use it in GitHub Desktop.
Prestashop migrate domain
## conectar a mysql en vagrant, https://github.com/sinermedia/prestashop-vagrant.git
## connect to mysql on vagrant. actual VM https://github.com/sinermedia/prestashop-vagrant.git
mysql -u root --database prestashop -p
pass prestashop
## article from https://blog.floriancourgey.com/2018/07/changing-domain-and-base-url-for-prestashop-1-7/
## importar datos desde dump en mysql vagrant
## importa data form mysql dump to vagrant
mysql -u root -p --database prestashop < /vagrant/prestashop/file.sql
## cambios datos acceso base de datos
## database credential change
# 0. edit your Database parameters in /app/config/parameters.php
## cambios dominio
## database domain change
# then, use these lines to update your configuration for your new host/domain
# 1. Shop URL remember change database prefix *
update *_shop_url set domain="localhost:8000", domain_ssl="localhost:8000" where main=1 and domain="www.staging.lahuertagrowshop.com";
# 2. Prefix remember change database prefix * y and your specific physical_uri
update p2020s_shop_url set physical_uri="/" where main=1 and physical_uri="/algo necesario/";
# 3. Enable (or disable) HTTPS
update *_configuration set PS_SSL_ENABLED=1; # 1=enable HTTPS, 0=disable HTTPS
# 4. Edit your /.htaccess by replacing "^my-domain-1$" by "^my-domain-2$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment