PHP and Apache installation

Discussion in 'Mac Basics and Help' started by wilson.palooza, May 17, 2008.

  1. wilson.palooza macrumors newbie

    May 17, 2008
    Where to start? I've been all over the internet for the last 16 hours, been to a lot of sites a lot of times, but still can't solve this issue.

    I have a MacBook, which I bought a couple of months ago. I've been playing around with web development, and am trying to get started on php.

    I've checked with terminal and I have PHP version 5.2.4 and Apache version 2.2.6. However, whenever I write any php code it just comes up in browser as plain text.

    I've checked the httpd.conf in the apache2 folder for the lines to uncomment, however only the addmodule line is there (not the addtype and others). I've tried adding the other ones in, but they don't seem to be doing anything.

    If anyone knows of a way to fix this, I'd be VERY appreciative.

    Thanks guys and gals.
  2. Jiddick ExRex macrumors 65816

    Jiddick ExRex

    May 14, 2006
    Roskilde, DK
    Apple's built-in modules is a bit tricky to enable. However most mac php developers seem to be good friends with this:

    It's freeware and works wonders. Have fun!
  3. -Alan- macrumors member

    Mar 10, 2007
    I tried to get all the included web modules working the way I wanted and eventually gave up. I couldn't get Apache to read my .htaccess files in my virtual hosts directory. Anyway, the path of least resistance is to use MAMP. Believe me, you'll be extremely happy using MAMP.
  4. wilson.palooza thread starter macrumors newbie

    May 17, 2008
    Hey thanks guys. I'm downloading Mamp now. I'll let you know how it goes.
  5. wilson.palooza thread starter macrumors newbie

    May 17, 2008
    Got MAMP?

    Well, thanks for all your help and advice guys. I have created my own website from scratch and (as you said) MAMP is excellent.

    I haven't launched the site yet, but when I do I'll be sure to post the address for you to check out.

    Thanks again!

Share This Page