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.
Wordpress free download - WordPress Widget, BitNami WordPress Stack, Poedit, and many more programs. Get latest news feeds. Publish and manage multiple blogs from your Mac. Download WordPress today, and get started on creating your website with one of the most powerful, popular, and customisable platforms in the world.
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‘);
/** MySQL database username */
define(‘DB_USER’, ‘root‘);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘yourpassword‘);
/** MySQL hostname */
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
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.
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.
For help getting started, check out our Documentation and Support Forums.
Meet other WordPress enthusiasts and share your knowledge at a WordPress meetup group or a WordCamp.
To support education about WordPress and open source software, please donate to the WordPress Foundation.
Priceless, and also free
Download WordPress and use it on your site.
Installation
With our famous 5-minute installation, setting up WordPress for the first time is simple. We’ve created a handy guide to see you through the installation process.
Release notifications
Want to get notified about WordPress releases? Join the WordPress Announcements mailing list and we will send a friendly message whenever there is a new stable release.
Requirements
We recommend servers running version 7.4 or greater of PHP and MySQL version 5.6 ORMariaDB version 10.1 or greater.
We also recommend either Apache or Nginx as the most robust options for running WordPress, but neither is required.
Download Wordpress Free
More resources
WordPress Hosting
Choosing a hosting provider can be difficult, so we have selected a few of the best to get you started.
SiteGround offers top-tier website performance and support regardless of your technical skill. Join millions of happy clients using their WordPress services to get the help you need at prices you love.
Visit SitegroundPrivacy-focused and dedicated to the Open Web, DreamHost provides some of the most powerful and secure managed WordPress environments in the world.
Visit DreamHost See all of our recommended hostsInspiration strikes anywhere, anytime
Create or update content on the go with our mobile apps.