Mac users: MAMP now recommended, not XAMPP

Dear Mac users,

There have been a number of issues with configuring XAMP on the Mac for use with NetBeans IDE, most significantly that XAMP sets the owners of MySQL databases to "nobody", blocking Apache access. Therefore I have changed the Mac OS setup tutorial to use MAMP instead of XAMP. In my opinion, the MAMP setup is more straightforward than the one for XAMP, anyway.

Comments:

All MySQL files should be owned by the mysql user/group. But that's a security issue.
In terms of app servers accessing the database, that goes through the normal MySQL security system so filesystem security is irrelevant from that respect.

Posted by Arjen Lentz on January 28, 2009 at 04:46 PM CET #

A nod for MAMP. I've used it for some time now and it is very easy to work with (also much more Mac like).

Posted by Stuart on January 28, 2009 at 06:05 PM CET #

Arjen's right, file system security is irrelevant to database privileges. I don't have a vested interest in either MAMP or XAMP, I use MacPorts to manage my local MySQL development server, but I don't agree with recommending one over the other.

Posted by Chad Kieffer on January 29, 2009 at 01:59 PM CET #

I'm curious why people insist on using packaged apps like MAMP when you have all the pieces already available in the OS X (Apache, PHP) and all you need is MySQL.

I can see doing MacPorts to get more "up-to-date" versions of the AMP part of the stack as compared to trying to use the vendor provided Apache and PHP with a separate MySQL install.

Am I missing some value proposition here ?

Posted by Rob Weaver on January 30, 2009 at 11:31 AM CET #

Yes Rob you are missing something... having XAMPP or MAMP makes it easy to configure and package a development environment... you can put this on a thumbdrive, can have multiple versions of the environment - starting/stopping as needed.

In addition there are tons of plugins that the default Mac configuration doesn't have for apache etc. Try doing drupal development for example with out of the box MacOS + MySQL... frankly I don't want to bother compiling from source the extensions.

It is frankly simpler and cleaner to have this infrastructure packaged and configurable in one spot.

I do various web project and with XAMP/MAMP I can have a custom environment per project or per client.

I can't image not having this kind of setup.

If you have a single monolithic environment that is mostly static than yes by all means use MacPorts and the default AMP stack on Mac OS X.

cheers

Posted by Andrew Migliore on February 07, 2009 at 05:56 PM CET #

I go to a PHP users group in San Francisco and no one recommends MAMP or XAMPP. For one thing Apache comes on the Mac. Why do you want another apache configuration? That is confusing and the system downloads upgrades automatically on the mac installed version for you. It may be easier for some to use mamp but I would like instructions on how to install the compiled versions of xdebugger for use with compiled version of mysql and php. I could not get xdebugger working with your instructions either from the xdebugger page or the netbbeans for php mac instruction page and I followed the instructions carefully and understood what I was doing. I finally used the komodo compiled version. I now have the xdebugger showing up in the php_info() but when I run the debugger in netbeans I get an error saying xdebugger can't connect it isn't configured correctly. I compiled the xdebugger from source following the netbeans instructions and the xdebugger instructions with the correct path and set the correct extension in the php.ini. It never showed up in php_info().

Please give us mac users a break and give some options on installation for configurations besides MAMP. If mamp works for you fine but for some it doesn't, as I said I use mysql and php both compiled from source. I suppose not many people use the command line for mysql anyway but it doesn't mean it is better to use mamp it just means it is initally easier.

It has taken me 3 weeks to install xdebugger and it still doesn't work and I know how to compile the binaries on the command line.
Janis

Posted by Janis Rough on February 14, 2009 at 07:54 PM CET #

Please give us mac users a break and give some options on installation for configurations besides MAMP. If mamp works for you fine but for some it doesn't, as I said I use mysql and php both compiled from source. I suppose not many people use the command line for mysql anyway but it doesn't mean it is better to use mamp it just means it is initally easier.

Posted by oteller on July 02, 2009 at 10:55 AM CEST #

I go to a PHP users group in San Francisco and no one recommends MAMP or XAMPP. For one thing Apache comes on the Mac. Why do you want another apache configuration? That is confusing and the system downloads upgrades automatically on the mac installed version for you. It may be easier for some to use mamp but I would like instructions on how to install the compiled versions of xdebugger for use with compiled version of mysql and php. I could not get xdebugger working with your instructions either from the xdebugger page or the netbbeans for php mac instruction page and I followed the instructions carefully and understood what I was doing. I finally used the komodo compiled version. I now have the xdebugger showing up in the php_info() but when I run the debugger in netbeans I get an error saying xdebugger can't connect it isn't configured correctly. I compiled the xdebugger from source following the netbeans instructions and the xdebugger instructions with the correct path and set the correct extension in the php.ini. It never showed up in php_info().

Posted by haberler on July 02, 2009 at 10:55 AM CEST #

Yes Rob you are missing something... having XAMPP or MAMP makes it easy to configure and package a development environment... you can put this on a thumbdrive, can have multiple versions of the environment - starting/stopping as needed.

Posted by tatil yerleri on July 02, 2009 at 10:56 AM CEST #

Please give us mac users a break and give some options on installation for configurations besides MAMP. If mamp works for you fine but for some it doesn't, as I said I use mysql and php both compiled from source. I suppose not many people use the command line for mysql anyway but it doesn't mean it is better to use mamp it just means it is initally easier.

Posted by konteyner on July 02, 2009 at 10:56 AM CEST #

How you can install MAMP is desribe for example here: http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html#installMamp

Posted by Petr Pisl on November 25, 2009 at 09:42 AM CET #

Can you have xampp and mamp on the same mac computer and choose either one to use

Posted by guest on October 20, 2011 at 01:42 AM CEST #

Yes, you may install both but you may only run one of them at a time. If you'd like to run them concurrently, you'll need to edit the httpd.conf file for either XAMPP or MAMP and change the port it listens for request on to something other than 80.

Posted by Chad Kieffer on October 20, 2011 at 11:50 AM CEST #

Thanks very much

Posted by guest on October 20, 2011 at 12:35 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today