vansrv7 Posted January 22, 2014 Share Posted January 22, 2014 Maybe a dumb question, but... how do I install a local multishop version of PS? I already realized a shop that works quite well (on my local machine, using xampp).. I followed the instructions to create two new shops, but probably there is something I miss (I'm not an expert, just moving my first steps, so I'm probably doing a lot of stupid errors...) My first shop is on 127.0.0.1/prestashop If I try to connect to 127.0.0.2/shop2 all I get is a 404 error. Can someone explain the complete procedure in a "idiot proof" way? Thank you very much. Claudio Link to comment Share on other sites More sharing options...
NemoPS Posted January 24, 2014 Share Posted January 24, 2014 Do you have a local server at 127.0.0.2? Otherwise, the secon url must be the same as the first, with /shop2 appended (or whatever virtual url you gave it) Link to comment Share on other sites More sharing options...
vansrv7 Posted January 24, 2014 Author Share Posted January 24, 2014 Hi Nemo, thank you for your reply. Sorry, it was a typo.... I only have a 127.0.0.1 server So it should be: 127.0.0.1/prestashop = main shop 127.0.0.1/shop2 = second shop I just had success setting vhost in apache but only the main shop works correctly, the second one still give me a 404 error. Link to comment Share on other sites More sharing options...
NemoPS Posted January 24, 2014 Share Posted January 24, 2014 the host for /shop2 must point to the files of shop1, otherwise it won't work Link to comment Share on other sites More sharing options...
vansrv7 Posted January 24, 2014 Author Share Posted January 24, 2014 That's the vhost configuration that works for main shop only (PS is installed in the c:/xampp/htdocs/prestashop folder. I had to delete the last "prestashop" voice to let it work for the main shop). "planesfactory" is the actual name for the second shop. <VirtualHost *:80> DocumentRoot "c:/xampp/htdocs/" ServerName prestashop ServerAlias prestashop DirectoryIndex index.php </VirtualHost> <VirtualHost *:80> DocumentRoot "c:/xampp/htdocs/" ServerName planesfactory ServerAlias planesfactory DirectoryIndex index.php </VirtualHost> Link to comment Share on other sites More sharing options...
NemoPS Posted January 24, 2014 Share Posted January 24, 2014 I don't know much about vhosts honestly (never been lucky with them), basically you have to redirect the second shop's domain to to the original prestashop folder Link to comment Share on other sites More sharing options...
vansrv7 Posted January 24, 2014 Author Share Posted January 24, 2014 I think it's what I did, but the result is not what expected... I'm missing something.... 127.0.0.1/prestashop points to /xampp/htdocs where it finds the prestashop folder and works 127.0.0.1/planesfactory points to the same folder, but something goes wrong Link to comment Share on other sites More sharing options...
vansrv7 Posted January 24, 2014 Author Share Posted January 24, 2014 maybe a first improvement: I dont's see a 404 error anymore, but an empty dir Index of /planesfactory parent directory Link to comment Share on other sites More sharing options...
El Patron Posted January 26, 2014 Share Posted January 26, 2014 for this to work properly and nemo1 hit on it earlier you would need to enable and then configure the alias_module and vhost_alias_module for apache. I know to test my 1.4 multishop module on localhost I would change the 1st domain (localhost) to anything and set 2nd or nth domain to localhost. I know I could only run one image at a time but that worked for my purposes. 1 Link to comment Share on other sites More sharing options...
pabloramiro Posted March 2, 2015 Share Posted March 2, 2015 (edited) Hello, I have the same problem that vansrv7, I also work with Xampp and Windows7 Here the errors:- Main shop (it worked correctly): http://127.0.0.1:8081/prestashop/- Second shop with virtual path worked wrong (without css and images. Paths to css and images are wrong!): http://127.0.0.1:8081/prestashop/shop2/ - Third shop (it gives me 404 error): http://www.shop3.com:8081/prestashop/(I configure www.shop3.com in my file hosts: windows/system32/drivers/etc/hosts)Please help me... Thans in advance Edited March 2, 2015 by pabloramiro (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