Jump to content

Multishop local installation


Recommended Posts

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

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

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

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  :unsure:

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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 by pabloramiro (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...