• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Set up dev environment
 

Set up dev environment

on

  • 3,488 views

How to set up a local WordPress Development Environment with MAMP / WAMP / or XAMPP

How to set up a local WordPress Development Environment with MAMP / WAMP / or XAMPP

Statistics

Views

Total Views
3,488
Views on SlideShare
2,892
Embed Views
596

Actions

Likes
2
Downloads
36
Comments
0

4 Embeds 596

http://ca274.beekeeperdev.com 590
http://lanyrd.com 4
http://paper.li 1
http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com
  • http://www.icoursesottawa.com

Set up dev environment Set up dev environment Presentation Transcript

  • Setting up a Local Test Environment by David Cook iCourses-Ottawa http://www.icoursesottawa.com
  • Agenda
    • Introduction
    • Why You Want a Development Environment
    • Requirements for a Development Environment
    • MAMP / WAMP / XAMPP Intro
    • MAMP / WordPress Install
    • WAMP / WordPress Install
    • XAMPP / WordPress Install
    • Migration from Development Environment to Live Environment Solutions
    • Questions
  • Why You Want a Development Environment
    • Experimenting with New Features
    • Plugin Testing
    • Theme Testing
    • Plugin Design
    • Theme Design
    • Work-Offline
    • Client Review
    • Just Playing
    • Development & Migration
  • Requirements for Local Development Environment
    • Install a local Server
    • (Mac: MAMP PC: XAMPP or WAMP)
    • Create a new Database
    • Download WordPress and extract new files.
    • Rename the wp-config-sample.php file to wp-config.php and update database details
    • Run wp--admin/install.php and follow WP install instructions.
  • MAMP / WAMP / XAMPP Intro
    • M – Mac W - Windows
    • A – Apache Server A – Apache Server
    • M – MySQL M – MySQL
    • P – PHP P – PHP
    • X – X86 Machine (Mac/PC/Linux)
    • A – Apache Server
    • M – MySQL
    • P – PHP
    • P – Perl
  • MAMP / WordPress Install
    • http://www.mamp.info/en/index.html
    • http://wordpress.org/
    • Should See:
    • Apache – 8888
    • MySQL – 8889
    http://www.icoursesottawa.com
    • Click on the MySQL Tab
    • Click on Launch phpMyAdmin
    http://www.icoursesottawa.com
    • Create a new database called “wordpress”
    • Click on create
  • Open the wp-config-sample.php file with your favorite editor
  • Change DB_NAME to “ wordpress”Test Change DB_USER to “root” Change DB_PASSWORD to “root” Change DB_HOST to localhost:8889 Save as wp-config.php then drag it into the WordPress folder Delete wp-config-sample.php
  • Go to Applications Go to MAMP Open htdocs Copy your Unzipped WordPress file In Safari go to http://localhost:8888/wordpress/wp-admin/install.php
  • Enter Your Blog Title & Email WordPress will give you your admin and password Copy your Password and click login Put in your username and password Finished!
  • WAMP / WordPress Install
    • http://www.wampserver.com/en/
    • http://wordpress.org/
  • Install WAMPServer
    • Install the WAMPServer by clicking on the .exe file
    • Click on run
    • Click “yes” to upgrade/clean up install
    • Click “next” after you “accept the agreement”
    • Click next (to use default installation folder)
    • Click next (check boxes as desired)
    • Click “yes” to select browser discovered
    • Leave Localhost in SMTP and insert your email address, click next
    • Click Finish
    http://www.icoursesottawa.com
    • Download WordPress at http://wordpress.org/download/
    • Left click on the semicircle on your taskbar.
    • Open up the www directory.
    • Drag the WordPress folder into the www directory.
    • Open PHPmyadmin from your wamp menu
    • Create a new Database ( ‘wordpress‘ or ‘blog‘ are good). Leave Collation. Click Create.
    • Click Go .
  • Change DB_NAME to “ wordpress”Test Change DB_USER to “root” Change DB_PASSWORD to “” Change DB_HOST to “ localhost: ” Save as wp-config.php then drag it into the WordPress folder Delete wp-config-sample.php
    • Put WordPress files in the root directory in the www directory folder.
    • Change index file to indexWAMP.php
    • Go to http://localhost/wp-admin/install.php
    • Follow install steps
  • Enter Your Blog Title & Email WordPress will give you your admin and password Copy your Password and click login Put in your username and password Finished!
  • XAMPP / WordPress Install
    • http://www.apachefriends.org/en/xampp.html
    • http://wordpress.org/
  • On Win 7, make sure you download the installer. I had problems with the zip files.
  • Double Click on the installer from your downloads file
  • Press OK here
  • Install
  • Click on the control panel. Start the Apache Server Start the MySql
  • Create new DB called “ wordpress_db ”
  • Create New User called “ wordpress_user ” Give a password (remember the password!!!)
  •  
  • define('DB_NAME', 'wordpress_db'); define('DB_USER', 'wordpress_user'); define('DB_PASSWORD', 'typeyourpasswordhere'); define('DB_HOST', 'localhost'); Save as wp-config.php then drag it into the WordPress folder Delete wp-config-sample.php
    • Put WordPress files in the root directory in the htdocs directory folder.
    • Go http://localhost/wordpress/wp-admin/install.php
    • Follow install steps
  • Enter Your Blog Title & Email WordPress will give you your admin and password Copy your Password and click login Put in your username and password Finished!
  • Migration to a Live Environment
    • Backup everything
    • Change Dev URL
    • Export WordPress DB
    • Upload Local WordPress files to Live Site
    • Login to your cPanel, go to MySql, Create DB
    • Change wp-config.php information.
    • Add WP Database, Create new user w/all privileges
    • Upload your exported WP DB with PHPmyadmin.
    • Excellent detailed video on the process here:
    • http://www.youtube.com/watch?v=cM9Z8aQTCvQ
  • QUESTIONS David Cook iCourses-Ottawa http://www.icoursesottawa.com