For a typical small to medium e-commerce website:
RAM: 4–8 GB (16 GB+ for high traffic)
CPU: 2–4 cores (4+ cores for high traffic)
This assumes optimized code, caching, and a standard CMS like Shopify, WooCommerce, or Magento. High traffic or resource-heavy sites need more.