InfoHeap
Tech tutorials, tips, tools and more
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 - make spotlight search faster
  • Mac - show volume icon on menu bar
  • Mac Command Line
  • Mac Finder
  • Mac Preview
  • Vagarant quick start guide on Mac
  • Windows on Mac
 
  • 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. Install nginx and php in docker ubuntu container
  2. How to connect to mysql server using ssh port forwarding
  3. How to install wordpress on Amazon AWS-EC2 Classic Ubuntu Linux micro instance
  4. How to install and monitor memcache for php on Ubuntu Linux
  5. How to install new fonts in Photoshop on Windows
  6. How to install phantomjs on Ubuntu Linux
  7. How to install and run Chrome PageSpeed insights for measuring site performance
  8. How to install AWStats on Ubuntu Linux
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mac, Tutorials

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | 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

Copyright © 2022 InfoHeap.

Powered by WordPress