You could use LFS, just don't build/install anything but the core OS modules and anything Apache needs to function.
Alternately, it would be easier to simply install a lightweight distribution like Slackware, Vector, or Arch. Strip out all packages but the bare minimum, and remove anything you don't need on your system (for example, removing the documentation and man pages will save you a few hundred megabytes).
|