Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 24, 2013, 05:59 PM   #1
tytheblackcat
macrumors newbie
 
Join Date: Jul 2013
Native Apache server or XAMPP?

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.
tytheblackcat is offline   0 Reply With Quote
Old Jul 25, 2013, 12:53 PM   #2
alain651
macrumors newbie
 
Join Date: Nov 2011
Location: Halifax, Canada
Ampps

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..
http://www.ampps.com

At Lynda.com have excellent video on installation and setup
http://www.lynda.com/MySQL-tutorials.../119003-2.html
alain651 is offline   0 Reply With Quote
Old Jul 25, 2013, 06:12 PM   #3
thekingofnerds
macrumors regular
 
Join Date: Jun 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.
thekingofnerds is offline   0 Reply With Quote
Old Jul 26, 2013, 09:01 AM   #4
wgnoyes
macrumors regular
 
Join Date: Jul 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.
wgnoyes is offline   0 Reply With Quote
Old Jul 26, 2013, 10:54 AM   #5
theluggage
macrumors 6502a
 
Join Date: Jul 2011
Quote:
Originally Posted by tytheblackcat View Post
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.
theluggage is offline   0 Reply With Quote
Old Jul 26, 2013, 03:39 PM   #6
mslide
macrumors 6502a
 
Join Date: Sep 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.
mslide is offline   0 Reply With Quote
Old Jul 26, 2013, 04:26 PM   #7
ctcherry
macrumors newbie
 
Join Date: Jan 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: https://github.com/ctcherry/easy_php_dev
ctcherry is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:39 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC