Jump to content

Recommended Posts

Using prestashop 1.6.0.9. I will explain the issue and hopefully someone from the community can provide some guidance. 

 

1. 4 prestashop installs (not multistore), separate domains & hosting accounts.

 

2. Each store contains the same product data & images (75,000 product images).

 

3. It would be super time consuming and stressful on the server(s) to upload 75,000 images for EACH store.

 

4. I would like each store to load the product images from the SAME image server (i.e Amazon S3, or Rackspace, etc). Basically, the image server is providing the same pictures for all the stores.

 

5. Two problems,

 

How can I connect/configure the product images from each store to the image server pictures?

 

When store owner adds new product & uploads image, where does it go, can it still be within the hosting account OR can it be included within the image server. 

 

 

I am looking for any help with this problem. I imagine someone has run into similar issues with wanting to use a separate media/image server for pictures. 

 

Thank you for your time.

 

 

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

I've got a a rather similar issue.

I want to keep EC2 instance as small as possible and do not want to store a copy of each image both on the application server and on the media server like Amazon S3. I need AWS S3 for his great SLA and also to use it as a real media server in order to decrease the load of the application server.

 

I've read on the Forge that Prestashop Media Server is only for the front office. What happens when you launch another EC2 instance ? Do we have to replicate every image from S3 to EC2 to get them in the back office ?

 

Another use case justify your requirements. When you sell digital product like movies which are huge files, it would be convenient not to store it on the application server but directly have it uploaded to S3. I did not mention the huge impact of storage it would have if we have to store every watermarked file on the application server itself.

 

Just to share what I've found until then, it seems that there are two ways to use S3 for Prestashop as a media server :

  1. Using the AWS SDK PHP streamwrapper : http://hiousi.tumblr.com/post/94824087894/prestashop-images-hosted-on-amazon-s3
  2. Mounting S3 bucket into EC2 instance with something like S3FS : https://forums.aws.amazon.com/thread.jspa?threadID=39361

The second one doesn't solve our issue as you have to store a copy of each image locally on the application server. I just mentionned it as a reference.

 

Further thoughts greatly appreciated.

 

Link to comment
Share on other sites

  • 2 weeks later...

As for I've tested using AWS SDK PHP Streamwrapper like mention on the first way above, it's more complicated than it seems.

This wrapper doesn't support all php fonction that is used by Prestashop core. Overriding every point seems to be a nightmare.

Is there someone, who succeed using this wrapper with Prestashop 1.6.x ?

Link to comment
Share on other sites

  • 2 months later...

I tried the first way above too. Seems to work well, upload, delete etc... BUT: the initialiazing of the streamwraper ist very very slow. Page load about 10 to 15 seconds, without streamwrapper 1sec. Whats wrong here?

 

 

 

This wrapper doesn't support all php fonction that is used by Prestashop core

 

Which unsupported php functions do you mean?

Edited by HanGman (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...