Today I installed WordPress locally on my Mac and I used
MAMP
to achieve my goal. With MAMP it’s very easy to run WordPress on Mac within 10 mins
. Install MAMP on Mac.Let’s get started. You just have to follow below simple steps and you should be good to go.
You have to take a screenshot of “about this mac” and send it in the form. Second, you have to tell me what kind of mac you have. Third, you have to tell me your current Mac OS X installation. Send this all to [email protected]. A desktop app that gives WordPress a permanent home in your taskbar. Download the app: Also available for: Mac OS X (10.9+) Windows (7+) Linux (.tar.gz) Linux (.deb).
Step-1
We need
Apache Server
and MySQL
in order to run WordPress locally. Download
MAMP and double click on binary to install
it.Step-2
Open MAMP. You may also see
MAMP Pro
as a part of install. We are going to use MAMP Free
version.Step-3
Change
Apache Port to 80
and MySQL Port to 3306
as per below snapshot.Step-4
Change
Document Root
as per your need. Mainly under /Document
folder.Step-5
Then click
OK
and click on Start Servers
. Provide administratorusername
and password
as we are going to start server on port 80
. You should see both green icons as shown in below diagram.This page by default opens in default browser:
http://localhost/MAMP/
. Keep that page open and move to next step. We will come back again on that page.Step-6
Now Download WordPress.
Step-7
![Wordpress for mac os x 10.7 Wordpress for mac os x 10.7](/uploads/1/2/6/5/126504885/647533153.jpg)
Extract
wordpress.zip,
change name to crunchify
and copy folder under Document Root, i.e. MAMP
Step-8
Now go to your browser page
http://localhost/MAMP/
again. Click on phpMyAdmin
.Step-9
![For For](/uploads/1/2/6/5/126504885/616036698.jpeg)
Create new DB called
crunchify_db
and click on Create
.Step-10
Point your browser to
http://localhost/crunchify
to install WordPress locally. Provide all appropriate information as mentioned below.Step-11
Now check your browser again pointing
http://localhost/crunchify
and you should be all set.mamp wordpress install tips.
Join the Discussion
If you liked this article, then please share it on social media or leave us your comments. Limited time 3 months free WPEngine hosting.
Other Popular Articles...
This tutorial assumes a certain degree of comfort in the command line Terminal for installing WordPress on macOS Sierra or Mac OS X El Capitan, Yosemite, Mavericks, Mountain Lion or Snow Leopard, the commands below are not overly complex and following the tutorial will get the job done. If you have no experience with the Terminal and want an easier way to install WordPress on your local Mac then consider using an already compiled set up, which allows for quick and easy multiple WordPress sites, like Desktop Server .
Before proceeding, WordPress needs a couple of things to get going and those things are an AMP stack – Apache, MySQL and PHP, Apache and PHP come bundled in OS X but MySQL needs to be downloaded and configured. Optionally install phpMyAdmin to manage the database.
To get the AMP stack working correctly on OS X follow this Mac OSX 10.11 El Capitan or Mac OSX 10.10 Yosemite or OSX 10.9 Mavericks.
Once these components are in place you are OK to proceed.
OS X has 2 web document roots ‘/Library/WebServer/Documents’ and ‘/Users/username/Sites/’ also known as ‘~/Sites’ this guide uses ‘~/Sites’.
The shared WordPress directory will be called “wordpress“.
WordPress File Set Up
make a sharing directory and move into it
get the latest WordPress
expand it
move all files into shared directory one level up
remove empty directory and compressed archive
create a settings file
Database Setup
create it a new database (no space between -p and password – as an alternative this can be done in phpmyadmin
or in phpmyadmin
create-database-wordpress-phpmyadmin
You can do all of the above in one hit at the command line just separate the commands with “;”. This would be handy with multiple installs and can be scripted – not necessary for this guide – but I thought I’d throw it in.
WordPress Database Config
Then proceed with the editing of the wp-config.php file which needs to have the database details added as below:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress‘);
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress‘);
/** MySQL database username */
define(‘DB_USER’, ‘root‘);
define(‘DB_USER’, ‘root‘);
Instalar Wordpress Mac Os X
/** MySQL database password */
define(‘DB_PASSWORD’, ‘yourpassword‘);
define(‘DB_PASSWORD’, ‘yourpassword‘);
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost‘);
define(‘DB_HOST’, ‘localhost‘);
If you are not comfortable with editing this file in nano in the Terminal you can use Text Edit in Applications.
Famous 5 Minute Install
Wordpress Mac Os
open it up in your default browser
fill in your credentials:
voila
success
Post Mortem
OSX El Capitan 10.11
In your username.conf in /etc/apache/users/ make sure you have the following directives:
This will allow .htaccess file usage.
But wait there’s more, you need to fix up those ownership and permissions
Or just change the Apache user to be your regular user.
Thats it you should have a fully functioning local WordPress install built on a native AMP stack.
Wordpress For Mac Os X 10.7
If you are having install issues possibly because of previous file configurations do try a solution like Desktop Server, it is a free app up to a level and then paid for some pro features.