Jump to content

Where does PrestaShop store multimedia contents


Recommended Posts

Hello to everyone!

 

I am configuring a load balanced installation of prestashop: I installed it on various machines, and load balance through them via HAProxy. In those machines, I have the same settings.inc.php in order to ensure that each machine can use the DBMS, and everything is working.

 

By the way, I created a product and noticed that the image of the product isn't stored on the database, but in the local filesystem of the machine that has actually created it (in a "p" folder, if I'm not wrong). So, if a client accesses to another machine (via load balance), he won't be able to see that image: that's a problem.

 

So, it seems like I need to share the filesystem through the various machines, using for example NFS. But I need to know which folders I need to share, and so here's my question: where does PrestaShop store the contents? Should I share via NFS the root folder or can I just share some folders?

 

Thanks to everyone.

Link to comment
Share on other sites

All images are stored in the /img/ directory and all the combined and minified CSS and JavaScript is in the /themes/yourtheme/cache directory. Is it only images, CSS and JavaScript that you need to load balance?

 

Is there a reason you aren't using the media server option on the Advanced Parameters > Performance tab? On there, you can enter multiple domains or subdomains and PrestaShop will randomly choose between these domains to load media.

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...