@Fischer: What you're looking for cannot be done easily. Apache was meant to be run as a daemon from the ground up, so it will never be tied to a single shell instance. It is theoretically possible to do what you want, but it'll take a lot of efforts.
If you really don't want to have a useless daemon running in the background of your machine, you can control it manually with these commands (run as root):
service apache2 start
service apache2 stop
(Note that I assume you're running Ubuntu. Also note that Ubuntu will be switching to systemd so these commands will be outdated in the near future).
If you don't want to be bothered with start/stopping the web server manually, use the dev server bundled in your favorite framework. That's exactly what it's here for :)