I have a Xen virtual private server (VPS) running Ubuntu 8.10, with 128M RAM.
I've found several "how to optimize Apache and MySQL for low-memory VPS" pages via Google, but they provide contradictory information. So I'm asking Server Fault: how does one optimize Apache and MySQL for a low-memory VPS configuration?
A couple of people have suggested using nginx instead of Apache. I'll look into that, but I'd prefer to stick with Apache if possible, just to avoid having to learn all about configuring application stacks on top of an unfamiliar (to me) web server.
Nginx is great, but if you want to stick with Apache, it's possible to slim it down quite a bit from the default settings:
If you have memory constraints, I would recommend using nginx as an alternative if at all possible. It consumes much less memory than Apache and depending on your needs could be all that you need.
As a bonus, nginx tends to be significantly faster than Apache. =)
Ditch apache, it's process per connection model will not play will with your low memory VPS.
I suggest nginx as a replacement.