The software packet XAMPP is a collection of popular applications like the web server Apache, a leading database management system (either MySQL or MariaDB), the scripting languages PHP and Perl, and more – all together in a compact test server. Our XAMPP tutorial will take you through the installation and configuration process, with the aid of clear instructions and screenshots, to help you set...
To develop a simple website with static elements, a special setup is required: you must be able to access your HTML document at any time with a common browser in order to check the current status of your online project or individual programming steps. However, if you intend to also implement dynamic content that is generated server-side, a web server is indispensable on the computer used for the development of the site in order to display everything correctly. With software stacks like MAMP, the installation process is child’s play, as they contain the latest version of the scripting languages and databases needed for server-side applications.
- What is MAMP?
- How to install the software stack
- The first steps with the MAMP application
- The most important questions about MAMP
- Is there a list of the included components and the different versions?
- Where can I find documentation on the included programs?
- Are there any special features to consider when installing MAMP?
- Can MAMP and MAMP PRO be used at the same time?
- Where are modules, logs, and configuration files stored by default?
What is MAMP?
MAMP is the name given to a particular collection of software used to manage a local web server. The name of the package itself is an acronym made up of the initials of the various components used:
- Mac OS X as the operating system
- Apache 2 as web server software (alternatively also NGINX)
- MySQL as the database management system
- PHP as the script language (alternatively also Perl or Python)
With MAMP, Mac users have access to a software stack that is quick to install and easy to use. The software often serves as a replacement for Apache and PHP versions that are often outdated in Mac OS X systems and automatically installs MySQL, which normally has to be carried out manually on Apple operating systems. The collection also contains a PHP accelerator such as XCache or eAccelerator; these cache compiled PHP codes are stored in the internal memory, thus significantly accelerating the execution of scripts. MAMP also includes another program of the same name for installing and operating the components. This allows users to define ports and start or stop database servers and web server with just one click. As well as the free version of MAMP, there’s also MAMP PRO, a commercial edition of the stack, which is an extended version of the MAMP application with diverse extensions. With the PRO version, you can install common web applications such as WordPress, Joomla, or Drupal and use different PHP versions in parallel. Originally designed exclusively for Mac OS X, MAMP finally became available for Windows in late 2015.
How to install the software stack
Before installing MAMP, you must ensure that your system fulfills its requirements. Apple users require a Mac with 64 bit CPU (x64) or higher from Intel and OS X version 10.6.8 or newer, as well as at least 2 GB of free hard drive storage. It’s also necessary for users to have the administrative rights. To use the program on a Windows operating system, (officially, 7, 8.1, and 10 are supported, while unofficially all versions from Windows XP and Windows Server 2003 onwards are supported) users must have .NET Framework installed 4.0 and have 1GB RAM memory available. Both installation packages can be downloaded from the official MAMP homepage. Just choose the correct package for your operating system and click the download button.
Double click the downloaded file to open it; this will subsequently run the installation program and start the installation process. The MAMP PRO folder (optionally available in Windows) is installed in addition to the MAMP folder; this also includes a 14-day trial version of the paid edition. Even if you decide not to use this, you shouldn’t delete it, as this file will be required in the event of a subsequent uninstallation.
The first steps with the MAMP application
Once the installation has been completed, you will find the executable file for the MAMP program, which can you can start by double clicking. The menu will be present you with the following options:
- Test MAMP PRO: this button is used if you wish to test the web stack’s PRO edition.
- Open start page: this button allows you to open the start page, which can be defined under the settings option, ‘Start page URL’.
- Stop servers: this button allows you to start or stop the MAMP server, i.e. the Apache web server as well as the MySQL database server. You can also specify in the settings that servers start or stop automatically when you open or quit the MAMP application.
- Settings: in the settings, you can define which ports the server applications are assigned to. Apache Port 8888 and MySQL Port 8889 are set as the default ports, but you can normally choose the most suitable option freely. With the option ‘Set web & MySQL ports to 80 & 3306’, you can set your ports to the customary values on the Internet. If you are planning a project that can be accessed externally via the internet, you also need to open the configured ports in the firewall. Go to the ‘PHP’ tab and determine which PHP version is used and whether you want to use a cache. Under the web server option, select your server software and the directory containing your web pages. By default, after the installation this should be /MAMP/htdocs or with Windows software, \MAMP\htdocs.
The most important questions about MAMP
MAMP is perfect for running your own local web server and makes getting started much easier for inexperienced users. Another great benefit of using this package is that you don’t even need to worry about installing individual components; simply updating MAMP, PHP, and MySQL will keep your system up to date. Thanks to the application, you can start and stop database servers and web servers precisely with a single click. We will summarise by answering some of the most important questions about the web stack and its features.
Is there a list of the included components and the different versions?
MAMP’s version history, contains a detailed list of all the programs, tools, and modules included, and an indication of their version, for all published versions of MAMP – both for Mac OS X as well as Windows. You can find out additional information here as well, such as if a MAMP version contains new functions, or if errors have been fixed.
Where can I find documentation on the included programs?
If you’re looking for information on the implemented programs, you’ll generally find it on the manufacturer’s website or the product page:
Are there any special features to consider when installing MAMP?
In order to install MAMP, the above-mentioned system requirements need to be fulfilled, and secondly, root access (Mac) must be possible. On Mac OS X systems, it’s also necessary to put the MAMP folder directly in the applications directory so that Apache and the MySQL server can be started. With Windows systems, MAMP is installed in the C:\ file by default. Keep this as the installation location, as installing the package in the program folder could lead to certain MAMP functions not working properly.
Can MAMP and MAMP PRO be used at the same time?
As you can install the trial version of MAMP PRO along with the regular MAMP package, it’s possible to use both packages simultaneously from the very beginning. Both web development environments run independently of each other. Should you wish to deinstall MAMP PRO, this will not affect the functionality of the standard package. However, some minor errors may occur, as MAMP has some configuration options unknown to MAMP PRO. In this case, you can inform the developer team via the integrated bug tracker.
Where are modules, logs, and configuration files stored by default?
|Mac OS X||Windows|
|PHP configuration file||/Applications/MAMP/conf/phpX.XX||C:\MAMP\conf\phpX.XX|
|Apache configuration file||/Applications/MAMP/conf/apache||C:\MAMP\conf\apache\httpd.conf|