You need to install the apache webserver with php and mysql. For the mac you should be able to find an all in one setup called mamp (Mac Apache Mysql & PHP).
As for using Komodo, this is a php forum so you may find better luck in the software manual or on its website. This forum is really for helping to write code / fix it not for 3rd party programs to help you write it. Granted we'll try to help if we can but it's not a specialist komodo support forum so you're unlikely to get a lot of assistance.
My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!