Native Apache server or XAMPP?

Discussion in 'Mac Programming' started by tytheblackcat, Jul 24, 2013.

  1. tytheblackcat macrumors newbie

    Jul 1, 2013
    Hi everyone,

    I am very new to mac. I just bought my first Macbook Air and I am really loving it.

    I understand that macs come with Apache server and you need to enable it. Since I come from a PC world, I use XAMPP to run the Apache server and MySQL.

    So my question is should I use the Apache server that came along with the mac? or should I just install XAMPP on my mac. What are the advantages of using the Apache server that came along with the mac?

    Many thanks and apologies for such a newbie question.
  2. alain651 macrumors newbie

    Nov 11, 2011
    Halifax, Canada

    Myself i prefer using the build in Apache2, to activate use terminal type " sudo apachectl start "...

    open webpage type: localhost = It works !
    Default document root
    cd /Library/WebServer/Documents

    And manually install PHP, MySql and setup root to your home Sites folder

    ** Also i would recommend AMPPS, its free and it work great..

    At have excellent video on installation and setup
  3. thekingofnerds macrumors regular

    Jun 26, 2013
    If you're just doing a dev server - MAMP pro can't be beat.

    It costs $59, but makes managing everything an absolute breeze if you're constantly jumping between projects. Comes with a ton of php extensions pre-enabled (gd, mcrypt, curl, pdo, etc). There's also the free Mamp which is the same thing, minus the nice interface for managing it.
  4. wgnoyes macrumors 6502

    Jul 20, 2011
    I went through that myself, and even found a script to turn on/off the built-in apache server. But manually installing php and mysql were no-go's for me, so I went with MAMP. Very, VERY easy to use. I haven't looked back.
  5. theluggage macrumors 68040

    Jul 29, 2011
    None unless you're anal about having two copies of Apache on your machine. You'll get newer versions of Apache, PHP etc. and more flexibility with add-ons by using your own server.

    There used to be a "Web Sharing" on/off checkbox in "System Preferences" (I think it keyed in to the firewall as well) - a pretty slight advantage - and if you wanted to use MAMP etc. without disturbing this then you had to use a non-standard port for MAMP etc. Web sharing has been dropped in the current version of OS X, so that's no longer an issue. They've also dropped MySQL from the standard distribution in favour of PostgreSQL. None of these get used unless you install OS X Server, though.

    The "OS X Server" add-on adds some GUI stuff for setting up local websites using the built-in server - but I wouldn't bother with that.

    Either use MAMP as suggested or - if you like tinkering - install MacPorts and use that to build your own versions of Apache, PHP, Mysql/PostgreSQL etc. with exactly the features you want.
  6. mslide macrumors 6502a

    Sep 17, 2007
    If this is for web development, I'd install a Linux VM and set everything up from scratch in that. That way, you A) learn how to set everything up and maintain it and B) don't have to worry about messing up your OSX installation if you screw up. Worst case, you blow away the VM and start over.
  7. ctcherry macrumors newbie

    Jan 20, 2009
    Native with changes

    I use the OSX native apache. I do a lot of development on many different websites so I wanted an easy way to run any website without a lot of setup. I created a set of scripts to help set it up, you can check it out here:

Share This Page