InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Mac tutorials

  • Brew
  • Chrome enable webgl on old macbooks
  • How to change computer display name on Mac
  • How to change default system voice for text-to-speech on Mac
  • How to install drupal on Mac usin MAMP
  • How to remove hard drive icon from mac desktop
  • How to use rrdtool plot traffic from network interface
  • How to view your WiFi password on Mac
  • Mac - change desktop icons size
  • Mac - how to take timed screenshot
  • Mac - how to always show scroll bar
  • Mac - how to change default location for screenshots
  • Mac - how to open apps not from App Store
  • Mac - how to take screenshots
  • Mac - how to use kubernetes with Lima-VM
  • Mac - kubernetes minikube - create deployment
  • Mac - make spotlight search faster
  • Mac - show volume icon on menu bar
  • Mac Command Line
  • Mac Finder
  • Mac Preview
  • Mac m1 - How to Install Kubernetes with kind
  • Mac m1 - How to Install Kubernetes with minikube
  • Mac m1 - minikube - create multi node kubernetes cluster
  • Mac podman quick start guide
  • NestJS Quick start tutorial on Mac
  • NextJS Quick start tutorial on Mac
  • Vagarant quick start guide on Mac
  • Windows on Mac
  • minikube kubernetes - create deployment with multiple replica and load balancer
  • minikube kubernetes - how to access service IP endpoint using curl
  • minikube kubernetes - how to access specific pod IP endpoint using curl
 
  • Home
  • > Tutorials
  • > Mac

How to install drupal on Mac usin MAMP

By admin | Last updated on Mar 21, 2016

Drupal is an open source popular cms system powering millions of websites and applications. This article covers how to install Drupal on Mac using MAMP. MAMP will come with its own apache, php and mysql. These are the quick instructions for installing Drupal:

Download and install MAMP

Downloaded MAMP from https://www.mamp.info/en/downloads/ and follow the GUI instructions to install it.

start MAMP mysql and apache servers

Once installed run MAMP application and you will see the following GUI.
mamp_start_ui

Click on preference to view the web server and ports tab. On webserver tab you will see default value of DocumentRoot and ports tab will show you default mysql port as shown below.
mamp-preference-web-server
Note the document root value of /Applications/MAMP/htdocs for apache. We’ll use apache for the purpose of this article.
mamp-preference_ports
Note the value of Apache port (8888) and Mysql port (8889). These are not default Web server and Mysql ports. But we’ll use these for now.

In case you want to view php info visit http://localhost:8888/MAMP/index.php?page=phpinfo. This will also display the location of php.ini file.

Create database

Now visit http://localhost:8888/phpmyadmin/ and create mysql database with name drupal1 of any other name of your choice.

Install drush (optional)

Drush is a command line shell and Unix scripting interface for Drupal. Install drush using brew:

brew install drush

Download drupal

Download drupapl by using the following command

$ curl -O http://ftp.drupal.org/files/projects/drupal-7.38.zip
$ unzip drupal-7.38.zip -d /Applications/MAMP/htdocs/
$ mv /Applications/MAMP/htdocs/drupal-7.38 /Applications/MAMP/htdocs/drupal1

We are installing drupal in /Applications/MAMP/htdocs/drupal1. You can pick some other location also.

Install drupal

To start drupal installation visit http://localhost:8888/drupal1/install.php. You can use standard installation on first screen. When asked for database setting use the default mysql user and password (root, root).
drupal-install-database-screen

Select mysql host as localhost and port as 8889 in advanced options as shown below:
drupal-install-database-screen-advanced

In site information screen provide a site name (e.g. drupal1) and a site maintenance user (admin), email and suitable password as shown below:
drupal-install-site-information

Continue with rest of the steps. Once drupal is installed it creates /Applications/MAMP/htdocs/drupal1/sites/default/settings.php based on selected settings.

Visit site

Visit drupal site at http://localhost:8888/drupal1/.

Suggested posts:

  1. Chrome extension tutorial – access active page dom
  2. How to migrate wordpress from root to sub directory
  3. How to find mysql query rate on Linux
  4. How to convert HTML canvas to png image using javascript
  5. PHP apc – setup and performance benchmarks on Ubuntu Linux
  6. How to monitor 404 pages on your site
  7. How to set up google analytics profiles for domain and sub-domain tracking
  8. Convert mp3 to ogg on Mac using ffmpeg
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mac, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress