View Full Version : Native Apache server or XAMPP?
Jul 24, 2013, 05:59 PM
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.
Jul 25, 2013, 12:53 PM
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
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 Lynda.com have excellent video on installation and setup
Jul 25, 2013, 06:12 PM
If you're just doing a dev server - MAMP pro (http://www.mamp.info/en/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.
Jul 26, 2013, 09:01 AM
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.
Jul 26, 2013, 10:54 AM
What are the advantages of using the Apache server that came along with the mac?
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.
Jul 26, 2013, 03:39 PM
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.
Jul 26, 2013, 04:26 PM
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: https://github.com/ctcherry/easy_php_dev