You can learn more about OPcache here.Īctivate Xdebug to allow PHP to create debugging information during script execution. 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. This cache is available for the following PHP versions: 5.3 to 5.6. You can learn more about eAccelerator here. This cache is available for the following PHP versions: 5.3 & 5.4. You can learn more about APC here.ĮAccelerator a free open-source PHP accelerator & optimizer. The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Select this option if no PHP cache module should be used. An interface is not available if the arrow button is not enabled. Press the arrow button to the right of the cache name to view this interface. Several caches provide a user interface to help analyze and profile your code. A particular cache is not available for the current PHP version if it is not enabled. Enabling a cache extension does not necessarily translate into greater execution speed. PHP has several cache extensions that can help speed up execution in certain circumstances. More information on how to change the PHP version for an individual host is covered in the Settings > Hosts > General section. This allows you to specify which version of PHP to use for each of your hosts separately. Select this option to run PHP in CGI mode. All your hosts will use the same version of PHP.ĬGI (every host may be set to a different PHP version) Select this option to run PHP in module mode. Module (all hosts use the same PHP version) When this option is checked the following is added to your “~/.profile” file.Īlias composer='/Applications/MAMP/bin/php/composer'Ĭhoose whether to use identical PHP versions for all hosts (Module) or on a host by host basis (CGI). MAMP PRO uses aliases to provide this functionality. This allows you to install additional PHP extensions via PECL, for example. More information about this template file can be found here.Īctivate command line shortcuts for the selected PHP version, pear & peclĬheck this option to make the current PHP version available on the command line. This version can therefore not be removed and the minus button is deactivated for this PHP version.Ī click on this button opens the internally used template file for the php.ini file in an editor window. MAMP PRO requires PHP 5.4.45 internally for the installation of the extras. Afterwards a restart of MAMP PRO is necessary.Ī click on this button will delete the selected PHP version from your development environment. By clicking on the “Install” button of the required PHP version this version will be added to your development environment. Select which PHP version will be the default version.Ī click on this button opens a dialog box with a list of the additional available PHP versions. MAMP PRO installs several versions of the PHP script interpreter. To edit your hosts file in vim, open your preferred terminal and enter sudo vim /etc/hosts.PHP is a popular web scripting programming language. It's protected, so you'll likely have to use sudo to open it and enter your Mac password. The /etc/hosts file on your local machine maps custom domain names to the IP addresses. Here's how I set up MAMP with virtual hosts on my Mac: Enter virtual hosts! These allow us to serve content to multiple domain names at once. I needed a way to serve my sites locally with a base URL these relative links to resolve to. For example, on a site at localhost:8888/mysite, would link to localhost:8888/image.jpg instead of localhost:8888/mysite/image.jpg like I needed it to. I keep all my WordPress work in one folder served up by MAMP, so each site in that folder is served at localhost:8888/mysite.Īt some point I started running into problems with this URL structure, mainly because root-relative URLs would link to the wrong places. When I'm developing for WordPress, I use MAMP to serve my sites locally.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |