ajspiano Posted November 16, 2013 Share Posted November 16, 2013 (edited) Hi All, I have a test site that I'm working on on my laptop, hosted locally using Xampp. I'm trying to get access to the site from an alternate PC so that both I and my business partner can work on it at the same time. Using a program called "virtual router manager" I've been able to get my laptop to act as a router, the other PC to connect to it and access the sites hosted locally on the laptop. Except for prestashop. On this PC, i've used the required IP address to access the docs, like this: http://192.168.142.1/test-file.html (works fine) http://192.168.142.1/prestashop/index.php (doesn't work) also tried http://192.168.142.1/prestashop/test-file.html (works fine) .... as unlikely as I thought it would be I also confirmed that its nothing to do with PHP/SQL not being accessible on the new PC because I can access phpMyAdmin fine and all the prestashop database information is accessible from there. So my conclusion is that the prestashop coding is somehow blocking access to itself over the network.. not really at all sure where to begin on working out why or how its doing that.. any ideas? Thanks. Edited November 16, 2013 by ajspiano (see edit history) Link to comment Share on other sites More sharing options...
ExpressTech Posted November 16, 2013 Share Posted November 16, 2013 When you access prestashop on your own PC what is the URL you use? Also, what is your "Shop Domain" and "Base URI" under Preference > SEO & URLs 1 Link to comment Share on other sites More sharing options...
ajspiano Posted November 16, 2013 Author Share Posted November 16, 2013 When you access prestashop on your own PC what is the URL you use? Also, what is your "Shop Domain" and "Base URI" under Preference > SEO & URLs Thanks, I've arrived at a half solution from this plus a bit of digging. I had been using www.shoptest.com as defined in my hosts file to 127.0.0.1. I tried putting 192.168.142.1 www.shoptest.com in the alternate PC's hosts file so that it would match my stores shop domain and base URI settings... but that didn't work, and neither did directly entering the IP. However, I've now set the shop's domain and URI to "192.168.142.1" and "/" - which works, as my presta install has now been placed in the root htdocs folder of xampp. I find it strange though that I was able to access the back office fine without any problems before adjusting these settings. Its accessible now so no worries. I fee a bit frustrated though that it wouldn't allow me to specify a domain name with the hosts files. Link to comment Share on other sites More sharing options...
ExpressTech Posted November 16, 2013 Share Posted November 16, 2013 Not sure why that is, it may be because of both the host files are pointing to different IPs. Why don't you point your host files (on both PCs) to 192.168.142.1 and try this again. At the end, you found a working solution which is important. Link to comment Share on other sites More sharing options...
Recommended Posts