# Developing in a Local Environment
!
Allen Moore
@creativeallen
http://www.allenmoore.me
Slide 2
Slide 2 text
* Building with WordPress since 2005
* Web Designer at NC State University Department of Electrical and
Computer Engineering
* Continuing Education Instructor at Wake Technical Community College
* 8 years of Contract and Freelance Work prior to NC State
## About me
Slide 3
Slide 3 text
1. What is local development?
2. Installing tools for local development
3. Configuration of tools
4. Installing WordPress in a local environment
5. Additional thoughts and tools
## Outline
Slide 4
Slide 4 text
* Mac OSX
* Text editor
* Terminal
## Assumptions for your environment
Slide 5
Slide 5 text
* Local environment = your computer
* Outside of the production environment
### What is local development?
Slide 6
Slide 6 text
### Advantages of local development?
Slide 7
Slide 7 text
* Internet connection not required
### Advantages of local development?
Slide 8
Slide 8 text
* Internet connection not required
* Network failures
### Advantages of local development?
Slide 9
Slide 9 text
* Internet connection not required
* Network failures
* Internet outages
### Advantages of local development?
Slide 10
Slide 10 text
* Internet connection not required
* Network failures
* Internet outages
* Other possible headaches
### Advantages of local development?
Slide 11
Slide 11 text
* Internet connection not required
* Network failures
* Internet outages
* Other possible headaches
* Develop from anywhere
### Advantages of local development?
Slide 12
Slide 12 text
* Internet connection not required
* Network failures
* Internet outages
* Other possible headaches
* Develop from anywhere
* Testing, testing, testing
### Advantages of local development?
Slide 13
Slide 13 text
* Internet connection not required
* Network failures
* Internet outages
* Other possible headaches
* Develop from anywhere
* Testing, testing, testing
* Upload, test, fix, REPEAT
### Advantages of local development?
Slide 14
Slide 14 text
* MAMP
* Windows: WAMP, AMPPS, XAMPP
* SQL pro
* Windows: Heidi SQL, PHPMyAdmin
#### Installing tools for local development
* Proper configuration of your development tools will leave you with less
headaches
##### Configuration of tools
Slide 18
Slide 18 text
* Change server start/stop
##### MAMP Configuration
Slide 19
Slide 19 text
* Apache/MySQl Ports
##### MAMP Configuration
Slide 20
Slide 20 text
* PHP Version
##### MAMP Configuration
Slide 21
Slide 21 text
* Apache
##### MAMP Configuration
Slide 22
Slide 22 text
* Open Terminal and enter the following command
sudo pico /etc/apache2/httpd.conf
##### MAMP Configuration
Slide 23
Slide 23 text
* Start MAMP
##### MAMP Configuration
Slide 24
Slide 24 text
* MySQL Server
##### SQL Pro Configuration
Slide 25
Slide 25 text
* Local copy of WordPress
* Database
###### Installing WordPress in a local environment
Slide 26
Slide 26 text
* Download WordPress
* http://www.wordpress.org
###### Installing WordPress in a local environment
Slide 27
Slide 27 text
* Copy contents of WordPress to your preferred directory
###### Installing WordPress in a local environment
Slide 28
Slide 28 text
* Create a new database in SQL Pro
###### Installing WordPress in a local environment
Slide 29
Slide 29 text
* Edit wp-config-sample.php with database connection info
###### Installing WordPress in a local environment
Slide 30
Slide 30 text
* Edit wp-config-sample.php with WordPress Salt Keys
* https://api.wordpress.org/secret-key/1.1/salt/
###### Installing WordPress in a local environment
Slide 31
Slide 31 text
* Edit wp-config-sample.php $table_prefix with unique prefix
###### Installing WordPress in a local environment
Slide 32
Slide 32 text
* Save wp-config-sample.php as wp-config.php
###### Installing WordPress in a local environment
Slide 33
Slide 33 text
* Navigate to your local install and complete the WordPress setup
###### Installing WordPress in a local environment
Slide 34
Slide 34 text
* WordPress is installed!
###### Installing WordPress in a local environment
Slide 35
Slide 35 text
* Let’s log in!
###### Installing WordPress in a local environment