Skip to content

free2mangesh-/new-wp-mamp-shell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

New MAMP WordPress Install via Shell

Roll a new WordPress installation for MAMP with this quick shell script (allows custom inputs for directory, database name, and WP version).

Assuming you have MAMP installed in /Applications/MAMP/htdocs:

  1. Download the shell script.
  2. Run it in Terminal.
  3. Answer the prompts.

From my brief write-up:

I decided to combine the most common, repetitive steps of the process into one useful shell script that:

  1. Creates a new directory (and lets me name it)
  2. Downloads WordPress from GitHub and checks out whatever version I tell it to
  3. Creates a new database (and lets me name it) and gives the MySQL user proper permissions
  4. Generates my security keys and adds them to wp-config.php
  5. Adds my database name, username, and password to wp-config.php
  6. Opens up wp-admin/install.php to lets me complete installation

FAQ

Getting fatal: could not create work tree dir... or having other permissions-related issues? Put sudo in front of the path to the script before running it.

About

Roll a new WordPress installation for MAMP with this quick shell script (allows custom inputs for directory, database name, and WP version)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published