MAMP 3 User Guide! March 2014 (c) appsolute GmbH!



Similar documents
MAMP PRO 3 - User Guide! March 2014 (c) appsolute GmbH!

TIMETABLE ADMINISTRATOR S MANUAL

PHP+MYSQL, EASYPHP INSTALLATION GUIDE

Upgrading MySQL from 32-bit to 64-bit

Installing Drupal on Your Local Computer

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

MOODLE Installation on Windows Platform

MassTransit 6.0 Enterprise Web Configuration for Macintosh OS 10.5 Server

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

Install Apache on windows 8 Create your own server

Server Installation/Upgrade Guide

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

Installation Instructions

Local Caching Servers (LCS): User Manual

Project management integrated into Outlook

CEFNS Web Hosting a Guide for CS212

Mercy s Remote Access Instructions

MySQL Quick Start Guide

Witango Application Server 6. Installation Guide for OS X

ProjectPier v Getting Started Guide

NovaBACKUP xsp Version 15.0 Upgrade Guide

MySQL quick start guide

INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP

Browser Client 2.0 Admin Guide

FAQ. How does the new Big Bend Backup (powered by Keepit) work?

ODBC Driver Guide. Installation and Configuration. Freezerworks Unlimited Version 6.0

Extending Remote Desktop for Large Installations. Distributed Package Installs

MySQL Quick Start Guide

Getting Started with Dynamic Web Sites

SharePoint Wiki Redirect Installation Instruction

Modelling with R and MySQL. - Manual - Gesine Bökenkamp, Frauke Wiese, Clemens Wingenbach

Install and configure Apache, MySQL, PHP on OSX 10.8 Mountain Lion

Your complete guide to installing the Self-Service Portal and estore.

Livezilla How to Install on Shared Hosting By: Jon Manning

Build it with Drupal 8

How to recover IE Client

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

VIVIDESK Desktops can be accessed with a Macintosh Computer by one of two methods:

Install SQL Server 2014 Express Edition

Do I need to install anything on my computer to use the VC?

TAO Installation Guide v0.1. September 2012

Installation & Upgrade Guide

EOP ASSIST: A Software Application for K 12 Schools and School Districts Installation Manual

FileMaker Server 11. FileMaker Server Help

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

Installation Guidelines (MySQL database & Archivists Toolkit client)

Cybozu Garoon 3 Server Distributed System Installation Guide Edition 3.1 Cybozu, Inc.

Setting up FileMaker 10 Server

FileMaker Server 10 Help

VHA Innovations Program Future Technology Laboratory. Linux Workstation Remote Desktop Connection Manual

Using Internet or Windows Explorer to Upload Your Site

MassTransit 6.0 Enterprise Web Configuration For Windows

Development of a Web Server Reflection Apache Server & Dynamic DNS

How do I Install and Configure MS Remote Desktop for the Haas Terminal Server on my Mac?

Expresso Quick Install

Backup and Restore MySQL Databases

Installation of PHP, MariaDB, and Apache

FileMaker Server 12. FileMaker Server Help

Online Backup Client User Manual

National Fire Incident Reporting System (NFIRS 5.0) Configuration Tool User's Guide

Charter Business Desktop Security Administrator's Guide

Wolfr am Lightweight Grid M TM anager USER GUIDE

Installing OptiRain Open on Macintosh OS X 10.6 (Snow Leopard)

Mac System Setup Guide (Pre-Class)

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

FileMaker Server 15. Getting Started Guide

Using Firefly Media Server with Roku SoundBridge. For Mac OS X and 10.4.x

SuperOffice AS. CRM Online. Installing the Citrix Online Web plug-in

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

Guide to Using the AK240 MQS Streaming Server. (Macintosh OS X Lion only)

FileMaker Server 7. Administrator s Guide. For Windows and Mac OS

StoreGrid Backup Server With MySQL As Backend Database:

How to connect to the University of Exeter VPN service

Getting started with PrestaShop 1.4

Central Administration User Guide

Using a login script for deployment of Kaspersky Network Agent to Mac OS X clients

How do I Install and Configure MS Remote Desktop for the Haas Terminal Server on my Mac?

Installing Microsoft Outlook on a Macintosh. This document explains how to download, install and configure Microsoft Outlook on a Macintosh.

How To Configure CU*BASE Encryption

NovaBACKUP xsp Version 12.2 Upgrade Guide

Migrating Netpresenter Message Server

4D v1x ODBC Driver INSTALLATION GUIDE

Musition 4. Installation & Quick Start

tpischeduler tpischeduler TotalFBO tpischeduler TotalFBO Initial Installation tpischeduler TotalFBO tpischeduler

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

Installing Booked scheduler on CentOS 6.5

How To Install Amyshelf On Windows 2000 Or Later

How to Use the Billericay School Portal

Virto Password Reset Web Part for SharePoint. Release Installation and User Guide

How To Upgrade A Websense Log Server On A Windows 7.6 On A Powerbook (Windows) On A Thumbdrive Or Ipad (Windows 7.5) On An Ubuntu (Windows 8) Or Windows

Imaging License Server User Guide

Setting Up a Development Server

Vectorworks 2015 Site Protection Server User s Guide

We begin with a number of definitions, and follow through to the conclusion of the installation.

Product Manual. MDM On Premise Installation Version 8.1. Last Updated: 06/07/15

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

2. PMP New Computer Installation. & Networking Instructions

VMware Horizon FLEX User Guide

FileMaker 8. Installing FileMaker 8 ODBC and JDBC Client Drivers

Transcription:

MAMP 3 User Guide March 2014 (c) appsolute GmbH 1

I. Installation 3 1. Installation requirements 3 2. Installing and upgrading 3 3. Uninstall 3 II. First Steps 4 III. Preferences 5 Start/Stop 5 2. Ports 6 3. PHP 7 4. Apache 8 5. Open Start Page 8 IV. FAQ 9 V. How-To s 9 2

MAMP Documentation I. Installation 1. Installation requirements To use the MAMP, your system must meet the following requirements: Operating system: Apple OS X 10.6.6 or later Mac with 64-Bit CPU from Intel (x84) User account that allows to administer the computer (Administrator) 2. Installing and upgrading Download MAMP from http://www.mamp.info. Double click on the file MAMP_MAMP_PRO_3.0.pkg in your Downloads folder. The System Installer will guide you through the installation process. If the installer detects a previous MAMP installation it will rename its MAMP folder to MAMP_current_date. An existing htdocs folder will be moved to your new /Applications/MAMP folder. Make sure that all data has been transferred correctly before starting MAMP. Your /Applications/MAMP_current_date folder can now be deleted. You may however keep it, so you can fall back to your original setup. Note: You need administrator permissions to install MAMP When installing MAMP, an /Applications/MAMP Pro folder will be installed in addition to your /Applications/MAMP folder. You can ignore this folder if you choose not use MAMP PRO. 3. Uninstall To uninstall MAMP, you only have to delete the MAMP directory and everything returns to the original state (MAMP does not alter anything on the normal Mac OS X). If you have used MAMP Pro as well, use the MAMP Pro uninstaller in the /Applications/ MAMP Pro folder to remove it. 3

II. First Steps After successful installation you can launch your local servers. Start MAMP and click on the Start Servers button. In the status display in the upper right corner, the launch status of the servers is displayed. If necessary, you will be asked for your administrator password. The web server (Apache) starts by default on port 8888, the database server (MySQL) on port 8889. When calling your web page in a web browser, you must enter the Apache port at the end of the URL, e.g.: http://localhost:8888 Preferences Set your preferences for MAMP. See the Preferences section for more details. Open Start page Open the start page of your local web server. Start Servers / Stop Servers Start or stop the Apache and MySQL services of MAMP. 4

III. Preferences 1. Start/Stop Start Servers when starting MAMP The Apache and MySQL services will start automatically when you launch MAMP. Stop Servers when quitting MAMP The Apache and MySQL services will be stopped automatically when you quit MAMP. Check for MAMP PRO when starting MAMP You will be prompted whether you want to start MAMP or MAMP Pro when this option is selected. At startup open The start page will automatically open at the startup of MAMP when you select this option. See the Open Start Page section for more information on the MAMP start page. 5

2. Ports Server programs, when addressed via the network, need to be assigned to a certain network port. This way, multiple server programs may run on one server machine. Every service has a default port: The Apache web server typically uses port 80, the MySQL database server utilises port 3306. These ports are configurable. The default configuration for MAMP uses ports 8888 and 8889. That way, the MAMP servers can run alongside other servers installed on your Mac. Should ports 8888 and 8889 be in use by a different application, please change the values accordingly. The button Set Apache & MySQL ports to 80 & 3306 will set the ports to the value commonly used on the internet. The button Set MAMP ports to default will reset the ports for Apache and MySQL to 8888 and 8889. If you want MAMP to be available via the Internet please make sure that the configured ports are opened in your firewall. 6

3. PHP Standard Version Choose whether PHP 5.1.6 or PHP 5.5.9 is used. The available PHP versions depend on the installed version of MAMP. Cache Caching can speed up the execution of your PHP code. The default caching option is off. OPcache is only available with PHP 5.5.x, eaccelerator only with versions before 5.5. 7

4. Apache Document Root Click on to select where your html/php files and images are stored. This directory is called Document Root. The default Document Root in MAMP is: /Applications/MAMP/htdocs. 5. Open Start Page The default MAMP start page provides links to access utilities such as phpmyadmin, phpinfo, SQLite Manager, phpliteadmin, FAQ, and the MAMP Website. The MAMP start page can be changed using Preferences. When using the default setting (/MAMP/), you will be directed to the MAMP utilities start page using the Alias definition /MAMP/. If this field is left blank, you will be taken to your default document root (http://localhost: 8888 in the /Applications/MAMP/htdocs). If you enter /subdirectory in this field, you will be taken to the /Applications/MAMP/htdocs/subDirectory folder via your default web browser (http://localhost:8888/subdirectory). 8

IV. FAQ Is it possible to install MAMP on an external drive? No, MAMP has to be installed on the system drive. Is MAMP compatible with Mac OS X 10.9 (Mavericks)? Yes, MAMP is indeed compatible with Mac OS X 10.9 (Mavericks). What does MAMP stand for? The abbreviation "MAMP" stands for: Macintosh, Apache, MySQL and PHP. Where can I download MAMP? Get the latest version of MAMP from our website www.mamp.info. Where can I find the log files? All log files are stored in: /Applications/MAMP/logs/ Which Apache modules are included? Apache modules are located in the /Applications/MAMP/Library/modules folder. Which PHP modules are included? To find out which PHP modules are included, use the following procedure. Start the servers and direct your web browser to http://localhost:8888/mamp/ and click on the phpinfo tab at the top of page. V. How-To s How can I change the password of the MySQL root user? Open the Mac OS Terminal Application (located in "/Applications/Utilities") and enter the following command line: /Applications/MAMP/Library/bin/mysqladmin -u root -p password <NEWPASSWORD> replace <NEWPASSWORD> with your new password. Please bear in mind that you also have to change the phpmyadmin configuration and probably your own php scripts to use the newly created MySQL password. For changing the phpmyadmin configuration edit the file /Applications/MAMP/bin/phpMyAdmin/ config.inc.php and update the password. 9

Check the Default Storage Engine of MySQL 1. Open MAMP 2. Start the servers 3. Open Terminal.app (/Applications/Utilities) 4. Enter the following line into the terminal and hit Enter: cd /Applications/MAMP/Library/bin 5. Hit Enter./mysql --host=localhost -u root -proot 6. Enter the following line into the MySQL prompt and hit Enter: USE information_schema; 7. Enter the following line into the MySQL prompt and hit enter: SELECT * FROM engines; 8. A table with the Storage Engines of MySQL will show up. Inside the Support column the Default Storage Engine has the value DEFAULT. 9. Enter the following line into the MySQL prompt and hit enter: exit; 10

Set the MySQL Default Storage Engine The MySQL server of MAMP uses the Default Storage Engine MyISAM. If you want to change this, you have to change the configuration file of the MySQL server. With this tutorial we want to show you how to change the Default Storage Engine to InnoDB. 1. Stop the MAMP Server if it is running. 2. Use a text editor to create a file named my.cnf and save it to the /Applications/MAMP/conf/ folder. 3. Add the following lines into the file: [mysqld] default-storage-engine = InnoDB 4. Save the file and close your editor. 5. Start the MAMP servers.use MySQL command line To use the MySQL command line, perform the following steps: 1. Start MAMP 2. Start the servers 3. Open Terminal.app (/Applications/Utilities) 4. Type in and hit enter: cd /Applications/MAMP/Library/bin 5. Type in and hit enter:./mysql --host=localhost -u root -proot Now you can use the MySQL command line. For example to show all your databases with: Connect to MySQL from PHP show databases; The following example shows how to connect to a MySQL database using the mysqli() library: <?php DEFINE('DB_USERNAME', 'root'); DEFINE('DB_PASSWORD', 'root'); DEFINE('DB_HOST', 'localhost'); DEFINE('DB_DATABASE', 'performance_schema'); // http://www.php.net/manual/en/mysqli.connect.php 11

?> $mysqli = new mysqli(db_host, DB_USERNAME, DB_PASSWORD, DB_DATABASE); if (mysqli_connect_error()) { die('connect Error ('. mysqli_connect_errno(). ') '. mysqli_connect_error()); } echo 'Connected successfully.'; $mysqli->close(); All product names and any registered and unregistered trademarks mentioned are used for identification purposes only and remain the exclusive property of their respective owners. 12