You want to set up WordPress locally on your Mac-book to get have some fun developing your own plug-ins or themes ? Well follow this tutorial and we’ll have you set up in no time.
This tutorial is assumes you have followed the instructions for setting up the Poor Man’s MAMP which will simplify the process of setting up WordPress . We also assume you’re comfortable running commands in the terminal window.
WordPress File Set Up
Open a new terminal window and download the latest version of WordPress
curl -O https://wordpress.org/latest.tar.gz
extract the files
tar -xvzf latest.tar.gz
Move the files to projects folder under Sites directory (Assumes you have followed instructions for setting up the Poor Man’s MAMP)
mv wordpress ~/Sites/projects/
Clean up Home directory removing the archive
Set up permissions for WordPress
sudo chown -R _www ~/Sites/projects/wordpress
sudo chmod -R g+w ~/Sites/projects/wordpress
We will create an empty database for WordPress . We will log into mySQL using the terminal.
Remember to use whatever Username and Password you have used to configure mySQL
mysql -u [username] -p [password]
Create the database using whatever database name you want. Typically we use wordpress
create database [database name];
If you have used our set up process for the Poor Man’s MAMP you should now be able to browse to http://localhost and click on your project folder.
Click on the link which will take you to the install screens. Select your language
This will take you to the Set up page and click Let’s go!
Fill in your Database Name , username and Password.
We ready to run the Install
We now just enter details of the site. Fill in as required.
WordPress should now be installed, your ready to explore the world of possibilities that is now open to you.
A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.