The methods I've come up with are:
- MAMP software on the Mac
- OS X Server on the Mac
- Linux server in a virtual machine on the Mac
- Linux server on another computer on the same network as the Mac