Questions tagged [mamp]

The abbreviation "MAMP" stands for: Macintosh, Apache, MySQL and PHP. The OS X software application "MAMP" will quickly install the whole stack and provide a GUI for management.

The abbreviation "MAMP" stands for: Macintosh, Apache, MySQL and PHP.

MAMP installs a local web server environment suitable for running applications developed in the PHP programming language and using the MySQL database. The MAMP control panel includes the option to select between several supported versions of PHP.

The bundled PHP installations include:

  • common PHP extensions such as gd, jpeg, and XML support
  • the phpMyAdmin web interface for viewing and managing MySQL databases
  • precompiled PHP Accelerators such as APC, eAccelerator, and XCache

There are several versions of MAMP:

  • MAMP Stack by BitNami is a free, fully featured version for setting a local development environment. It includes a control panel and it has freely available modules for adding WordPress, Joomla!, Drupal and dozens of other applications. It is also available for free in the Mac OS X app store

  • MAMP is a free version primarily intended for setting up a personal web server or development environment. It includes a basic control panel for starting and stopping the Apache and MySQL servers, but more advanced configuration changes will require editing configuration files directly.

  • MAMP PRO is a commercial version of MAMP which includes additional administrative UI features such as the ability to enable/disable Apache modules and edit configuration files via the MAMP control panel.

Both MAMP versions are included in the same installer, however MAMP PRO is a trial version and will require a commercial license for continued usage. For a feature comparison, see: MAMP vs MAMP PRO.

MAMP is installed in the typical Mac fashion: very easily. MAMP will not compromise any existing Apache installation already running with your OS X. You can install Apache, PHP and MySQL without starting a script or having to change any configuration files!

Furthermore, if MAMP is no longer needed, it is sufficient to delete the MAMP folder and everything returns to its original state (i.e. MAMP does not modify any of the "normal" OS X files).

Additional Resources:

3215 questions
48
votes
3 answers

How can I get MAMP to tell me what went wrong with php code?

Whenever I have an error in my php code, MAMP just returns a 500 error. Is there anyway I can get MAMP to tell me what went wrong like parsing errors and stuff?
Ulmer
  • 1,530
  • 2
  • 17
  • 24
47
votes
5 answers

How to run a PHP script from the command line with MAMP?

I have MAMP installed. Now I am trying to run a script from the command line, but I can't seem to get it to work. How should I set up my environment so that I can run a script from the command line and use the PHP version I installed with…
Andrew
  • 227,796
  • 193
  • 515
  • 708
47
votes
9 answers

getting to phpmyadmin with mamp

I'm using MAMP, and trying to get to phpmyadmin. loaclhost/phpmyadmin isn't working.. the sql light is green so it is enabled. I have changed the Document Root to /Users/troycosentino/Sites/easyuniv/ and when i open the start page from MAMP it is a…
Troy Cosentino
  • 4,658
  • 9
  • 37
  • 59
44
votes
12 answers

How to connect MySQL workbench with MAMP PRO?

What is the fix to connect the MySQL Workbench tool with the MAMP PRO MySQL database?
Chris Hough
  • 3,389
  • 3
  • 41
  • 80
42
votes
3 answers

MAMP time between seeing live changes

I'm using MAMP server and wondering why changes I make to the PHP files are not instantaneously displayed when I page refresh (in browser). Is there a way to set this up? There are no caching settings on MAMP. Either I have to wait 20 seconds or…
zebapy
  • 643
  • 1
  • 5
  • 21
40
votes
6 answers

Configuring MAMP for SSL

Ok fellow coders, I am trying to configure MAMP with SSL on my mac for development purposes. I have read and tried the following…
djeetee
  • 1,799
  • 7
  • 24
  • 36
40
votes
3 answers

How to change PHP version on MAMP 4.1

I downloaded MAMP 4.1 on my Mac; by default, the only PHP versions I can use are 7.0.15 and 7.1.1 How can I use PHP 5.6? I tried the solution here Which says I should rename the versions I don't want to use to something else. But it didn't work for…
Ilo Calistus
  • 2,005
  • 3
  • 19
  • 23
39
votes
9 answers

Restoring deleted 'root' user and password for MySQL

I accidentally deleted the root user on my local dev setup of MAMP/MySQL running on OS X. There are no other users created to get back into MySQL. This is a mild nightmare can't seem to do anything without root. Found this:…
PHPeer
  • 413
  • 1
  • 5
  • 6
36
votes
19 answers

CakePHP Database connection "Mysql" is missing, or could not be created

There have been several other posts about this, but none of the answers seemed to work for me. When I navigate to the CakePHP page on my local machine, there is one error: Cake is NOT able to connect to the database. Database connection "Mysql"…
Ben Caine
  • 1,128
  • 3
  • 15
  • 25
33
votes
8 answers

How to create virtual hosts in MAMP?

I am new to Mac but used Ubuntu for development for a long time. I know how to create virtual hosts in Ubuntu but have no idea about Mac. I have created a hosts entry like below : ## # Host Database # # localhost is used to configure the loopback…
Ritesh
  • 4,720
  • 6
  • 27
  • 41
32
votes
14 answers

Why won't Apache Server start in MAMP?

I'm trying to view php files locally on my mac. I'm running Yosemite. I have MAMP installed on my computer. When I press start the MySQL server starts but Apache doesn't. An error message appears saying 'Error. Apache couldn't be started. Please…
Apache9019
  • 369
  • 1
  • 3
  • 5
30
votes
6 answers

How can I enable process control extension (PCNTL) in PHP MAMP?

I have MAMP and I need to enable -pcntl on my current MAMP installation. How can I do so?
Lina
  • 2,090
  • 4
  • 20
  • 23
29
votes
3 answers

MAMP: reloading pages is very slow

On a basic installation of MAMP, I'm building an application with CodeIgniter locally (MacBook Pro, Core2Duo 2,26 GhZ, 4GB RAM). My problem is, that when I reload a page, it does load very slow, even slower than when I put on a web server. It's…
Gchtr
  • 2,749
  • 2
  • 18
  • 28
29
votes
7 answers

Upgrade version of PHPMyAdmin

I'd like to match locally the same version of phpmyadmin installed in my production server. Is there a way to upgrade the version of Phpmyadmin in MAMP to the last version without breaking it? I upgraded MAMP but the latest version do not include…
Andycap
  • 525
  • 2
  • 8
  • 17
28
votes
3 answers

Java 1.6 Broken when called by background Symfony task

I have a Symfony task that generates some files calls exec to a jar and then parses the output. The jar runs fine from the command line, the task runs fine from the command line. The problem: I call the task in an action based on a form submission.…
paaat
  • 545
  • 5
  • 14