Languages > PHP
MAMP for Windows. MAMP is a free, local server environment that can be installed under macOS and Windows with just a few clicks. MAMP provides them with all the tools they need to run WordPress on their desktop PC for testing or development purposes, for example. You can even easily test your projects on mobile devices. Xdebug (Debugger) Activate Xdebug to allow PHP to create debugging information during script execution. By default, Xdebug uses localhost and port 9000 in the PHP.ini file. More information on using Xdebug with the MacGDBp Debugger can be founder here. Imagick / ImageMagick Activate Imagick / ImageMagick. Tidy Activate Tidy. Oauth Activate Oauth.
Xdebug support, graphical debugger MacGDBp included; ImageMagick / iMagick support (must be activated in ini file via templates) INTL support (PHP 5.3 and newer). MAMP & MAMP PRO. Mac OS X 10.7 'Lion' compatible; MAMP & MAMP PRO (and its containing programs and libraries) are now available as 32Bit and 64Bit versions. Mac OS Configuring Xdebug with MAMP Prerequisites. These instructions are for Mac OS X (actually tested on version 10.9.2 Mavericks) with installed MAMP Application (actually tested on MAMP version 3.0.4). Configuration instructions. Open finder and navigate to. MAMP installs a local server environment in a matter of seconds on your OS X computer, be it PowerBook or iMac. Like similar packages from the Windows- and Linux-world, MAMP comes free of charge. MAMP is installed in the typical Mac fashion: very easily. MAMP will not compromise any existing Apache installation already running with your OS X.
PHP is a popular web scripting programming language. MAMP PRO installs several versions of the PHP script interpreter.
- Default version
Select which PHP version will be the default version.- Plus
A click on this button opens a dialog box with a list of the additional available PHP versions. By clicking on the “Install” button of the required PHP version this version will be added to your development environment. Afterwards a restart of MAMP PRO is necessary.Adding Additional PHP Versions - Minus
A click on this button will delete the selected PHP version from your development environment. You have to confirm this before. - Open template…
A click on this button opens the internally used template file for the php.ini file in an editor window. More information about this template file can be found here. - Activate command line shortcuts for the selected PHP version, pear & pecl
Check this option to make the current PHP version available on the command line. MAMP PRO uses aliases to provide this functionality. When this option is checked the following is added to your~/.profile
file.Confirm your PHP is enabled by typing “php -v” in your terminal.Note: Your version of PHP on the command line is not configured by your PHP templates, or the MAMP PRO interface. More information on configuring your command line PHP can be found here.- Also activate shortcut for ComposerWhen this option is checked the following is added to your
~/.profile
file.
- Mode
Choose whether to use identical PHP versions for all hosts (Module) or on a host by host basis (CGI).- Module (all hosts use the same PHP version)
Select this option to run PHP in module mode. All your hosts will use the same version of PHP. - CGI (every host may be set to a different PHP version)
Select this option to run PHP in CGI mode. This allows you to specify which version of PHP to use for each of your hosts separately.More information on how to change the PHP version for an individual host is covered in the Settings > Hosts > General section.
- Cache module to speed up execution
PHP has several cache extensions that can help speed up execution in certain circumstances. This is set to “off” by default. Enabling a cache extension does not necessarily translate into greater execution speed. A particular cache is not available for the current PHP version if it is not enabled.Several caches provide a user interface to help analyze and profile your code. Press the arrow button to the right of the cache name to view this interface. An interface is not available if the arrow button is not enabled.- off
Select this option if no PHP cache module should be used. - APC
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. You can learn more about APC here. - eAccelerator
eAccelerator a free open-source PHP accelerator & optimizer. You can learn more about eAccelerator here. - XCache
XCache is a open-source opcode cacher. You can learn more about XCache here. - OPCache
OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. You can learn more about OPcache here.
- Extensions
- Xdebug (Debugger)
Activate Xdebug to allow PHP to create debugging information during script execution. By default, Xdebug uses localhost and port 9000 in the php.ini file. More information on using Xdebug with the MacGDBp Debugger can be founder here.- Download MacGDBp…
Clicking this button opens the MacGDBp website in your default browser. - Open MacGDBp
With Xdebug activated you can open the MacGDBp debugger to enable PHP debugging. By default, MacGDBp expects debugging information on port 9000 of localhost. More information on using Xdebug with the MacGDBp Debugger can be founder here.
- Imagick / ImageMagick
If you activate this checkbox, then Imagick resp. ImageMagick is available. - Tidy
If you activate this checkbox, then Tidy is available. - Oauth
If you activate this checkbox, then Oauth is available. - Enable other extensions…
A click on this button opens the internally used template file for the php.ini file in an editor window. More information about this template file can be found here.
- What to log
Here you define the type of messages to be reported.- Display startup errors
Log PHP errors that occur when Apache loads the PHP module. - All other errors and warnings (E_ALL)
If you activate this checkbox, all errors and warnings are reported. This option corresponds to the settingE_ALL
. See the PHP documentation in the “error_reporting” section for more information. - Errors (E_ERROR)
If you activate this checkbox, all errors are reported. This option corresponds to the settingE_ERROR
. See the PHP documentation in the “error_reporting” section for more information. - Warnings (E_WARNING)
If you activate this checkbox, all warnings are reported. This option corresponds to the settingE_WARNING
. See the PHP documentation in the “error_reporting” section for more information. - Notices (E_NOTICE)
If you activate this checkbox, all notices are reported. This option corresponds to the settingE_NOTICE
. See the PHP documentation in the “error_reporting” section for more information. - Other
Report further error types through constants. Please turn to the PHP documentation for further information.
Mamp Xdebug For Mac Os
- Log errors
Here you can choose where the messages should be written to.- to screen
Activate this checkbox if you want the messages to be displayed on your website. - to file
Activate this checkbox if the messages are to be written to a file.- Choose…
Here you can choose the directory and the file name. By default, the message is written to the file/Applications/MAMP PRO/logs/php_error.log
.
- Choose…