Setup local website on OS X

I am developing a website using LAMP, a dev toolkit of a combination of free and open source software. In particular, I am using Perl-based MVC framework Catalyst. Catalyst comes with PSGI server, i.e. you can run your web app without Apache. However, when I try to integrate my web app with MeidaWiki, a wiki engined based on PHP, I still need to setup  LAMP. Here are two posts I found particularly useful.