Learn how to read error logs.
24GB RAM will be enough to run a massive multinational store! Or hundreds of shared accounts. Heck, I'd split it into 8 VPSes with proxmox as a hypervisor.
PHP switching works fine with 2GB RAM.
Far too much misinformation goes on, in this forum.