oreze Posted July 4, 2014 Share Posted July 4, 2014 Hello, I have a problem with my prestashop. first of all, i have install prestashop with a lamp server (Virtual Linux) at work with my lamp server adress 10.100.23.15 So for install and configure prestashop I going to : http://10.100.23.15/prestashop/index.php AND http://10.100.23.15/prestashop/admin7430/index.php?controller=AdminLogin&token=d684fa459fa98f564e6b3c94404c7d79all is ok, I begin to configure and add products. BUT when I wants to continu at home with my virtual machine who has a different IP adress 192.168.1.22 and i try with : http://192.168.1.22/prestashop/index.php It's KO During the installation of prestashop, the configuration file keeps the ip address of installation?Furthermore when I am going to put on-line my site to my host how to configure ip public (OVH) and to remove my address ip local Link to comment Share on other sites More sharing options...
NemoPS Posted July 4, 2014 Share Posted July 4, 2014 If you use the same db, you will have to constantly change the local url, otherwise it will keep referring to the lamp server. So if you can login to the back office, change it from seo and urls, if not, in the database, ps_shop_url table, and %DOMAIN% entries in the ps_configuration table Link to comment Share on other sites More sharing options...
oreze Posted July 4, 2014 Author Share Posted July 4, 2014 It's Ok tks Link to comment Share on other sites More sharing options...
parsifal Posted July 7, 2014 Share Posted July 7, 2014 (edited) Hello oreze. Have you tried playing with the HOSTS file of your operating systems? For example, if both your PCs run Microsoft Windows, you should find the file C:\Windows\System32\drivers\etc\hosts, edit this and add something like the following: #fake domain name for WORK VM testshop.com 10.100.23.15 #fake domain name for HOME VM testshop.com 192.168.1.22 This way, when you are at your work PC, the URL testshop.com will resolve to the IP address 10.100.23.15 and when you are at your home PC, it will resolve to 192.168.1.22. In both cases, you just use testshop.com as your shop's URL everywhere required (like in PS BackOffice, in your browser's address bar etc). PS1: The C:\Windows\System32\drivers directory is hidden by default PS2: Some antivirus applications prevent you from changing the hosts file. If that is the case, just disable yours temporarily to make your changes and reenable it afterwards Edited July 7, 2014 by parsifal (see edit history) 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