View
3.806
Download
0
Category
Preview:
Citation preview
Slide 1
Setting up a Local Test Environmentby David CookiCourses-Ottawahttp://www.icoursesottawa.com
AgendaIntroductionWhy You Want a Development EnvironmentRequirements for a Development EnvironmentMAMP / WAMP / XAMPP IntroMAMP / WordPress InstallWAMP / WordPress InstallXAMPP / WordPress InstallMigration from Development Environment to Live Environment SolutionsQuestions
Why You Want a Development EnvironmentExperimenting with New FeaturesPlugin TestingTheme TestingPlugin DesignTheme DesignWork-OfflineClient ReviewJust PlayingDevelopment & Migration
Requirements for Local Development EnvironmentInstall 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 IntroM MacW - WindowsA Apache ServerA Apache ServerM MySQLM MySQLP PHPP PHP
X X86 Machine (Mac/PC/Linux)A Apache ServerM MySQLP PHPP Perl
MAMP / WordPress Installhttp://www.mamp.info/en/index.html
http://wordpress.org/
Should See:
Apache 8888 MySQL 8889http://www.icoursesottawa.com
http://www.icoursesottawa.com*
Click on the MySQL Tab
Click on Launch phpMyAdminhttp://www.icoursesottawa.com
http://www.icoursesottawa.com*
Create a new database called wordpressClick on create
http://www.icoursesottawa.com*
Open the wp-config-sample.php file with your favorite editor
http://www.icoursesottawa.com*
Change DB_NAME to wordpressTestChange DB_USER to rootChange DB_PASSWORD to rootChange DB_HOST to localhost:8889Save as wp-config.php then drag it into the WordPress folderDelete wp-config-sample.php
http://www.icoursesottawa.com*
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
http://www.icoursesottawa.com*
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!
http://www.icoursesottawa.com*
WAMP / WordPress Installhttp://www.wampserver.com/en/
http://wordpress.org/
Install WAMPServerInstall the WAMPServer by clicking on the .exe fileClick on runClick yes to upgrade/clean up installClick next after you accept the agreementClick next (to use default installation folder)Click next (check boxes as desired)Click yes to select browser discoveredLeave Localhost in SMTP and insert your email address, click nextClick 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 menuCreate a new Database (wordpress or blog are good). Leave Collation. Click Create.
Click Go.
Change DB_NAME to wordpressTestChange DB_USER to rootChange DB_PASSWORD to Change DB_HOST to localhost:Save as wp-config.php then drag it into the WordPress folderDelete wp-config-sample.php
http://www.icoursesottawa.com*
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 Installhttp://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 ServerStart the MySql
Create new DB called wordpress_db
Create New User called wordpress_userGive 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 folderDelete wp-config-sample.php
http://www.icoursesottawa.com*
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 EnvironmentBackup everythingChange Dev URLExport WordPress DBUpload Local WordPress files to Live SiteLogin to your cPanel, go to MySql, Create DBChange wp-config.php information.Add WP Database, Create new user w/all privilegesUpload your exported WP DB with PHPmyadmin.
Excellent detailed video on the process here:
http://www.youtube.com/watch?v=cM9Z8aQTCvQ
QUESTIONSDavid CookiCourses-Ottawahttp://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*
http://www.icoursesottawa.com*
Recommended