A company's website analytics application, hosted on a single EC2 On-Demand Instance with integrated PHP software and MySQL database, is experiencing performance issues and 5xx errors during peak times. Identify the most cost-effective solution to enable seamless scaling.