Jump to content

PROBELM PRESTASHOP LAMP


Recommended Posts

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=d684fa459fa98f564e6b3c94404c7d79

all 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

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

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 by parsifal (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...