![]() Open up C:\Windows\system32\drivers\etc\hosts in a text editor (like Notepad or better - Notepad ) Open C:\MAMP\conf\apache\extra\nf in a text editor (like Notepad or better - Notepad )Īdd the virtual host with server name and document root like the below code: Īllow your computer to recognise your local domain willing to pay for MAMP then i think it would have been a better choice because the UI is more intuitive.Īfter that, you can add the virtual host path If i was to use either MAMP or WAMP for Windows, i think i would choose WAMP simply because it's free and provides a numerous ways to configure your servers via UI. Open up C:\MAMP\conf\apache\nf in a text editor and go to line 216 and change: AllowOverride noneĪnd uncomment Includes conf/extras/nf If you do plan on using just the free version and want to manage your vhost, make sure vhost is enabled in Apache server. Once installed, inside your Drupal installation, to run drush you need to provide the path to Drush, which is: vendor/drush/drush/drush To do this, you need Composer and run the following command: composer require drush/drush You don't need to install Drush Commandline Tool globally, you can install it per installation so you run it on a per project basis. Make sure you select the latest PHP version if you are planning on using Composer with Drupal 8 or 9. If you need Composer, it is easy to install: see: MAMP is well documented so it's easy to get started.īoth free and paid versions works out of the box and most web applications such as Drupal or WordPress will work fine.īut it's really the paid version that shines as it comes with an UI to configure all the settings on the server so you don't need to fiddle about with updating files to make any changes to servers. Installing MAMP is pretty straightforward. However, MAMP have been releasing a Windows version as far back as near the end of 2015. I guess the M in MAMP can be misleading as the M stands for Mac ( Apache, MySQL and PHP). When choosing a local development servers to setup, it is surprising how many people assume MAMP is only for MacOS users and the alternative for Windows is WAMP.
0 Comments
Leave a Reply. |