Linux

Where Does Magento Store Orders and Media?

Where self hosted Magento keeps orders and media on Linux servers. See the folder table below. More below.

Last updated

Magento is commerce with server storage. The database holds products, orders, and customers. Media images sit in the pub media directory. The release version matters for themes.

Same database plus media means same shop. Exact paths vary by host with public_html or www roots. Keep backups of both together. One without the other restores products without images. For moves, enable maintenance first to freeze orders during dumps. When in doubt, verify paths inside the app before trusting a remembered folder.

Where Magento Commerce stores this, by platform

Linux
/var/www/html/media (images beside database, paths vary)

Products and orders live in the database with images beside it in media. Back up both together with maintenance on. Match releases before restore.

Frequently asked questions

How do I migrate Magento to a new server?

Back up the Magento database plus media directory with maintenance on, then install the same release on the new server before restore. Products and orders follow the database. Mixed releases can break themes, so match versions first.

Where are Magento product images stored?

In the MySQL database on your server with images beside it in media storage. The browser holds login plus admin cache only. Export products as CSVs from admin settings for records, since devices never hold the master catalog alone.

Notice an outdated path? Let us know.