If you’re a developer, or maybe more specifically, an aspiring developer, you have got to check out MAMP. Some of you may be familiar with LAMP, which was the Linux Apache MySQL PHP installer package. Well the incredibly cool folks at webEdition have blessed the mac […]

If you’re a developer, or maybe more specifically, an aspiring developer, you have got to check out MAMP.

Some of you may be familiar with LAMP, which was the Linux Apache MySQL PHP installer package. Well the incredibly cool folks at webEdition have blessed the mac faithful with the OS X installer package.

I downloaded and ran the package installer and it couldn’t have been simpler! Literally 2 minutes after running the installer, I had my entire environment up and running, logged in, and ready to get crazy with some php app development. Best part? Doesn’t touch the regular OS X Apache installation! Very cool.

You need to check it out if you’ve ever been interested in working with these kind of technologies. Then, once you’re comfortable with it (or ready to just trash it) just delete it and the whole installation is gone – all from one directory.

You’re subscribed! If you like, you can update your settings

  1. Too right, I’ve just moved from Windows to MAC (with very little pain). And I have no idea how to config MYSQL etc. A few minutes after downloading MAPP it was and reamins running without any problems.

  2. hello…..

    can anyone help me enter data into mysql database
    from a flash form using coldfusion components ?

    i’m using web services and simply want to pass data from my flash form to my cfc while staying in flash…

    any actionscript (or coldfusion code ‘cfc’) that anyone could provide or even links to other ressources on this specific topic would be awesome…

    if someone could help me with this process i would be greatful…..

    thank you in advance…

    Imran Hashmi

  3. I am new to MAMP and attempting to use it. I recently installed it with no serious problems. I need help on how to use it. I would like to create a website, but first develop if off line with MAMP. After I’ve figure out what I’m doing, I would go live with it. I just need some basic beginner help.

    Anyone wiling to help a novice out?

  4. I installed MAMP and Apache is running fine, but I can’t get MySQl to start up. Anyone else having this problem. I have found zero documentation on MAMP out there.


  5. Hi Donal,

    Anytime you attempt to start a server engine such as mysql or apache, mamp or otherwise, there will typically be a log file recording errors that are encountered. Checking the log, in my experience, will nearly always point you in the direction of the specific problem that is causing the server not to start & stay running. The solution will often then be readily at hand, either by following your intuition and experimenting until the problem is solved, or by googling the error message or some portion of it, until you find the solution you’re looking for.

    The MAMP 1.2.1 error logs for apache, mysql and php, are located in the MAMP folder, in a subfolder called ‘logs’. Open that folder and you’ll see the three relevant text files. In this case, open the mysql_error_log, and you’ll likely see a list of complaints for each time you’ve attempted to start mysql. Sometimes the list can be quite long, and it may seem to be very esoteric, but don’t let this put you off. Often times, one single problem will be reported over and over again throughout different stages of the server launch, or additional problems will be reported that are merely derived from the first problem. Fix the one problem, and many or all of the other errors are likely to go away.

    Also, don’t worry about the fact that you might not understand much of the language reported in the error log. Just read over it line by line, grasping the parts you can and mentally setting aside the parts you don’t understand. Chances are, you’ll understand enough to locate the likely source of the problem. Do your research, try to restart the server, and check the bottom of the error log to see what has changed. Finally, the server will start right up and away you go.

    If after all of this, you simply cannot find the solution, the best approach is usually to find a good related newsgroup, mailing list, or forum and post a summary of your question followed by the full details of your hardware, operating system & version, the software version you’re having trouble with, any solutions you’ve tried, and very importantly the full relevant portion of the log file(s). By supplying all of this detail, someone else will likely be able to understand your problem well enough to suggest a probably solution.

    ** Another important note: MAMP is a very cool packaged implementation of apache, mysql, and php, which works great right out of the box, but in order to achieve this level of simplicity, many of the related files, including log files, application files, conf files, etc., are located in non-standard places. This may have ramifications as you research answers to questions or problems, or if you later move to a more traditional implementation of these servers. Everything works the same, but things might be configured slightly differently, or located in a place different than some mentor might be suggesting you look. Just something to be aware of as you find your way around.

    I hope this helps…


  6. Oh, one more thing. In some cases, further researching or implementing a solution to the problem will best be done at the command line. This means launching the ‘Terminal’ application, opening a shell (terminal window), and begining to find your way around the linux/bsd back-end. If you find helpful hints from people using other linux like operating systems, and the directions they give you seem like command line instructions, you can try them out by opening a shell and typing them in. In that case, look for any linux introductory website to get oriented to the shell and the command line.

    Good luck


  7. Thanks for all the help. The final solution was quite simple. Once I determined that the first installation was still running in the background I trashed it and restarted the computer. Everything back to Green Lights. Yeh!


  8. William Ryan Monday, July 31, 2006

    I am having a problem with superglobals using MAMP. None of my FORM variables are being passed over to the php script. What do I have to do with MAMP to get these variables to work?

    I would appreciate any advice.

  9. An alternate open source MAMP stack for OS X 10.3 and later: MAMPStack

  10. Though either MAMP or MAMPStack should be pretty equivalent, I downloaded and installed MAMPStack 5.5 since the versions were a tad newer and it had Python as well. It went smoothly with one important issue which I was able to resolve as detailed here.

    After the install, the Apache test went fine. Starting MySQL went fine. But verifying that it was up with the following:

    Prompt> /Applications/mampstack-5.5/mysql/bin/mysqladmin -p

    Returned the following:

    /Applications/mampstack-5.5/mysql/bin/mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists!

    The configuration was looking in /tmp for the MySQL socket, which actually was to be found in:

    I cd’d to the /tmp directory and created a symbolic link to the actual location of the file:

    ln -s /Applications/mampstack-5.5/mysql/tmp/mysql.sock mysql.sock

    That provided the key link and everything worked.

    It is as though the programs in /mysql/bin/ are hard-coded to look in /tmp for mysql.sock. They must be configurable but I haven’t figured it out yet. In any case, the symbolic link fix is simple and works even if it’s a bit of kludge.

    Perhaps this would not be an issue with MAMP. But I think I had to deal with a similar issue during the install of MySQL 4 so it may be a more general issue.

    I hope this is useful.


Comments have been disabled for this post