New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Managing MAMP

From: Installing Apache, MySQL, and PHP

Video: Managing MAMP

The MAMP control panel offers a number of Here are some tasks you can accomplish. I'll make that change and click okay.

Managing MAMP

The MAMP control panel offers a number of options for managing your Apache, MySQL, and PHP installation. All of the options are available under preferences. Here are some tasks you can accomplish. By default, the MAMP servers, Apache and MySQL, start up when you start the MAMP application, and shut down when you quit. You can tell the servers to stay alive and keep on responding to requests even if you've closed the MAMP application, by deselecting the option stop servers when quitting MAMP.

I'll make that change and click okay. You'll see that there's some work going on in the background, and you might be prompted for your administrative password. But once it's finished, I'll quit the MAMP application then I'll go back to my browser. I'll type localhost/MAMP. Make sure you spell MAMP in all upper case. And everything is still working. I can still go into phpMyAdmin and see that my database is alive. Now, I'll close the browser, and return to the MAMP application, going to the MAMP folder, and the MAMP app, and when the MAMP control panel opens, it automatically reopens the welcome page for me.

So this feature is useful if you want to keep your MAMP servers up and running, but you don't want to keep the MAMP control panel open. I'll go back to the preferences panel and again to the Start and Stop tab. Notice that every time you open the control panel, that Welcome Page opens automatically. If you don't want that to happen, you can uncheck that option and you can also prevent the dialog from popping up, checking for MAMP Pro. For developers who use MAMP all the time, they typically turn both of those options off. I've already described in a previous movie how to set the ports for Apache and MySQL to their standard ports.

Port 80 for Apache and 3306 for MySQL. You can also choose a PHP version. By default, you have versions 5.5 and 5.1 available. You can download and install other versions of PHP from the MAMP website. And the Apache tab has just a single option, changing the document route. To do that, click the folder icon. That'll open up finder, navigate to the folder you want to use and select it.

I'll leave this set to the default of ht docs. If you make any changes to your preferences you might be prompted with your administrative password. Type it in, and the servers should be restarted automatically, and you should be ready to work. There's one other very important tool that's included with the latest version of MAMP. As I've showed previously, you get a copy of phpMyAdmin that lets you manage your MySQL databases through a web-based interface. But you also get a copy of MySQL Workbench.

A graphical interface for managing MySQL databases that's from MySQL. You don't need map to get MySQL Workbench. You can download it for free from mysql.com, but it's already a part of this folder. If you want to manage your local database through MySQL, click the plus icon to create a new connection. You can name it anything you want. I'll call it just local. The host name can be 127.0.0.1, or local host.

The username will be root. And for the password, click the button labeled store in key chain. And type the password that's set up during the MAMP installation, root, all lowercase. Click okay, and then click test connection. And if everything's working, you should see the message that the connection parameters are correct. You can then double click to open the connection, and from here you can create and manage your databases. You don't have to use MySQL Workbench.

If you prefer, you can use phpMyAdmin to do everything you need with MySQL. But for those developers who prefer a native UI, MySQL Workbench is free and easy to get started with. And that's pretty much everything there is to know about configuring a map. Of all the amp stacks for Mac that I know of, it's the simplest and fastest to get started with. It doesnt' have as many options and additional tools as some of the other stacks that I show in this course, but it's simple, and it's free.

Show transcript

This video is part of

Image for Installing Apache, MySQL, and PHP
Installing Apache, MySQL, and PHP

39 video lessons · 43021 viewers

David Gassner
Author

 
Expand all | Collapse all
  1. 17m 35s
    1. Welcome
      1m 9s
    2. Understanding Apache, MySQL, and PHP
      7m 12s
    3. Using the exercise files
      1m 7s
    4. What's new in this update
      3m 35s
    5. Choosing a software stack
      4m 32s
  2. 30m 18s
    1. Installing Apache HTTP Server 2.4 on Windows
      6m 51s
    2. Installing PHP 5.5 on Windows
      4m 12s
    3. Starting Apache from the command line
      5m 24s
    4. Installing MySQL on Windows
      7m 24s
    5. Installing phpMyAdmin on Windows
      6m 27s
  3. 44m 5s
    1. Activating Apache on Leopard and Snow Leopard
      3m 35s
    2. Activating Apache on Lion
      5m 9s
    3. Activating Apache on Mountain Lion and Mavericks
      4m 57s
    4. Configuring personal site folders on Mountain Lion and Mavericks
      6m 59s
    5. Activating PHP on Mac OS X
      6m 12s
    6. Installing MySQL on Mac OS X
      3m 59s
    7. Setting the root user password
      2m 28s
    8. Installing phpMyAdmin on Mac OS X
      6m 16s
    9. Uninstalling MySQL on Mac OS X
      4m 30s
  4. 14m 35s
    1. Installing WampServer
      6m 25s
    2. Managing WampServer
      2m 2s
    3. Defining directory aliases through WampServer
      2m 55s
    4. Changing software versions with WampServer add-ons
      3m 13s
  5. 10m 58s
    1. Installing MAMP
      4m 6s
    2. Configuring Apache and MySQL server ports
      1m 57s
    3. Managing MAMP
      4m 55s
  6. 29m 3s
    1. Installing XAMPP for Windows
      10m 0s
    2. Managing XAMPP for Windows
      4m 4s
    3. Managing MySQL security through XAMPP for Windows
      2m 40s
    4. Installing XAMPP for Mac OS X
      6m 14s
    5. Managing XAMPP for Mac OS X
      2m 27s
    6. Managing MySQL security through XAMPP
      3m 38s
  7. 13m 20s
    1. Installing BitNami for Windows
      6m 31s
    2. Installing BitNami for Mac OS X
      6m 49s
  8. 18m 49s
    1. Handling port conflicts with Skype on Windows
      2m 37s
    2. Handling other port conflicts on Windows
      5m 19s
    3. Detecting and handling port conflicts on Mac OS X
      6m 26s
    4. Configuring Apache to work with IPv6 on Windows 8
      4m 27s
  9. 31s
    1. Goodbye
      31s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.