SlideShare une entreprise Scribd logo
1  sur  43
MICHAEL ATKINS
cubecolour.co.uk


                   Wo  r d Pr ess
            Ru n               r PC
                all y on  yo u
           lo c
                        FOR




            M AR TI ES
        S                          w ith apolo
                                               gie   s to   Wiley ’s Fo
                                                                        r Dummi
                                                                                es S e   ries




               WordCamp UK Portsmouth 2011
Michael Atkins
Michael Atkins
michael@cubecolour.co.uk

 @cubecolour

   cubecolour

    cubecolour.co.uk
What do we
want to do?
What do we
       want to do?




Run a local installation of WordPress on a PC
What do we
       want to do?




Run a local installation of WordPress on a PC

 How about multiple WordPress installations?
Why?
Kick the Tyres
Development
Limited Internet Access
Present a Work in Progress
Test Backups
Test Upgrades
Why?
Kick the Tyres
Development
Limited Internet Access
Present a Work in Progress
Test Backups
Test Upgrades
Why?
Kick the Tyres
Development
Limited Internet Access
Present a Work in Progress
Test Backups
Test Upgrades
NOT
 suitable to create a
Live Web Server
 accessible via the
     internet
What Components?
What Components?


  APACHE             PHP         MySQL
  HTTP               Scripting   Database
  Server             Language

  Windows / OSX / Linux
  Operating System
What Components?

  PHPmyAdmin
  Database
  Management

  APACHE             PHP         MySQL
  HTTP               Scripting   Database
  Server             Language

  Windows / OSX / Linux
  Operating System
Apache
L inux



    I
   LAMP
L inux
 Unix-like Operating System
 based on the linux kernel
 Used on Servers, desktops,
 laptops, mobile phones, tablets,
 routers, consoles
 Name comes from the Linux
 Kernel originally written in 1991
 by Linus Torvalds
Officially named as a
tribute to the Apache
tribes of Native Americans
Originally named Apache
as it was a patchy Web
server
Officially named as a
tribute to the Apache
tribes of Native Americans
Originally named Apache
as it was a patchy Web
server
The world’s most popular
Open Source Database
The world’s most popular
                Open Source Database




Database Management Web Application

       Create Databases
       Manage Databases
Relational Database
                The world’s most popular
                Open Source Database




Database Management Web Application

       Create Databases
       Manage Databases
Nothing to do
with Gong’s Pot
  Head Pixies
Created by
Rasmus Lerdorf
in 1995

Officially stands
for PHP:
Hypertext
Preprocessor

Originally stood     Nothing to do

for Personal        with Gong’s Pot
                      Head Pixies

Home Page
I
WAMP
I
WAMP    I
       MAMP
XAMPP
XAMPP



http://www.apachefriends.org
Current Versions of XAMPP at July 2011
Current Versions of XAMPP at July 2011




    Requirements         XAMPP          XAMPP           XAMPP
for WP v3.2.1 & later   v1.7.4        v1.7.3           v1.7.4



    5.2.4+              5.3.5          5.3.1            5.3.5




      5.0+              5.5.8         5.1.44            5.5.8
Demonstration
Download & Install XAMPP on Windows XP
Set MySQL Password
Decide on names for our 2 sites
Set up databases for 2 sites
Copy WordPress files to 2 site directories
Map Local Site names to our Local IP address
Configure Apache for multiple sites
Install WordPress for each site
The Hosts File
The Hosts File

A system file on your computer
Provides domain name resolution
Overrides DNS
Hosts
Hosts
                                      t Corp.
# Copyright   (c) 1993-1999 Microsof
#                                                        IP for Windows.
                       STS file   used by Microsoft TCP/
# This is a sample HO
                                                                    s. Each
#
                          e mappings of IP   addresses to host name
#   This file contains th               dual line. The IP addr
                                                               ess should
                          on an indivi                              host name.
# entry should be kept                        by the corresponding
                          t column followed
#   be placed in the firs               should be separated by
                                                                at least one
                        the host name
 # The IP address and
 # space.
                                                                    dividual
 #
                             (such as these)  may be inserted on in
 #  Additionally, comments                          by a '#' symbol.
                        the  machine name denoted
 # lines or following
 #
 # For example:
  #                                                   # source server
          102.54.94.97      rh ino.acme.com
  #                                .com               # x client host
           38.25.63.10      x.acme
  #

 127.0.0.1        localhost
Location of Hosts
Location of Hosts
   /etc/hosts




   /etc/hosts




  C:windowssystem32driversetc
Connection
Information?
Connection
Information?

       lo calhost
       nobody
        xampp
Migrating the site
from local to public
Migrating the site
from local to public
   Backup Database on Local
   Copy Files To Webhost
   Create a Database on Webhost
   Restore backup to new database
   Run Search & Replace script
   Edit wp-config.php
Running a Search &
replace on the Database

      http://mytestsite.local


    http://www.myrealsite.com
Running a Search &
 replace on the Database

                 http://mytestsite.local


            http://www.myrealsite.com

Dave Coveney’s WordPress Search & Replace Tool:
http://interconnectit.com/124/search-and-replace-for-wordpress-databases/

Contenu connexe

En vedette

Xampp wordcamp2011
Xampp wordcamp2011Xampp wordcamp2011
Xampp wordcamp2011cubecolour
 
Empowerment dell'economia locale 0.3
Empowerment dell'economia locale 0.3Empowerment dell'economia locale 0.3
Empowerment dell'economia locale 0.3Christian Lovato
 
Upsa
UpsaUpsa
Upsakorzh
 
基本遗传算法
 基本遗传算法 基本遗传算法
基本遗传算法sixu05202004
 
Economia universale, democrazia e responsabilità
Economia universale, democrazia e responsabilitàEconomia universale, democrazia e responsabilità
Economia universale, democrazia e responsabilitàChristian Lovato
 
People and Performance UK
People and Performance UKPeople and Performance UK
People and Performance UKpphrskp
 

En vedette (9)

Xampp wordcamp2011
Xampp wordcamp2011Xampp wordcamp2011
Xampp wordcamp2011
 
Empowerment dell'economia locale 0.3
Empowerment dell'economia locale 0.3Empowerment dell'economia locale 0.3
Empowerment dell'economia locale 0.3
 
Iperspazi Semantici
Iperspazi SemanticiIperspazi Semantici
Iperspazi Semantici
 
Upsa
UpsaUpsa
Upsa
 
Protocolo 1 2
Protocolo 1 2Protocolo 1 2
Protocolo 1 2
 
基本遗传算法
 基本遗传算法 基本遗传算法
基本遗传算法
 
Economia universale, democrazia e responsabilità
Economia universale, democrazia e responsabilitàEconomia universale, democrazia e responsabilità
Economia universale, democrazia e responsabilità
 
Conexidad por trayectorias
Conexidad por trayectoriasConexidad por trayectorias
Conexidad por trayectorias
 
People and Performance UK
People and Performance UKPeople and Performance UK
People and Performance UK
 

Similaire à Web server local for smarties

DNS for Developers - NDC Oslo 2016
DNS for Developers - NDC Oslo 2016DNS for Developers - NDC Oslo 2016
DNS for Developers - NDC Oslo 2016Maarten Balliauw
 
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, OrchestrationThe Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, OrchestrationErica Windisch
 
Phoenix Servers with Docker and Nginx
Phoenix Servers with Docker and NginxPhoenix Servers with Docker and Nginx
Phoenix Servers with Docker and NginxNils De Moor
 
Getting Started with Docker on AWS - DevDay Los Angeles 2017
Getting Started with Docker on AWS - DevDay Los Angeles 2017Getting Started with Docker on AWS - DevDay Los Angeles 2017
Getting Started with Docker on AWS - DevDay Los Angeles 2017Amazon Web Services
 
Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017Amazon Web Services
 
Midwest php 2013 deploying php on paas- why & how
Midwest php 2013   deploying php on paas- why & howMidwest php 2013   deploying php on paas- why & how
Midwest php 2013 deploying php on paas- why & howdotCloud
 
DNS for Developers - ConFoo Montreal
DNS for Developers - ConFoo MontrealDNS for Developers - ConFoo Montreal
DNS for Developers - ConFoo MontrealMaarten Balliauw
 
How domain name servers work
How domain name servers workHow domain name servers work
How domain name servers workRaxTonProduction
 
Hosts para a info
Hosts para a infoHosts para a info
Hosts para a infoalberth123
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011Alfred Ayache
 
Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014André Rømcke
 

Similaire à Web server local for smarties (20)

Hosts
HostsHosts
Hosts
 
Belvedere
BelvedereBelvedere
Belvedere
 
DNS for Developers - NDC Oslo 2016
DNS for Developers - NDC Oslo 2016DNS for Developers - NDC Oslo 2016
DNS for Developers - NDC Oslo 2016
 
Hosts
HostsHosts
Hosts
 
Hosts
HostsHosts
Hosts
 
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, OrchestrationThe Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
 
Phoenix Servers with Docker and Nginx
Phoenix Servers with Docker and NginxPhoenix Servers with Docker and Nginx
Phoenix Servers with Docker and Nginx
 
Getting Started with Docker on AWS - DevDay Los Angeles 2017
Getting Started with Docker on AWS - DevDay Los Angeles 2017Getting Started with Docker on AWS - DevDay Los Angeles 2017
Getting Started with Docker on AWS - DevDay Los Angeles 2017
 
Hosts
HostsHosts
Hosts
 
Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017
 
Midwest php 2013 deploying php on paas- why & how
Midwest php 2013   deploying php on paas- why & howMidwest php 2013   deploying php on paas- why & how
Midwest php 2013 deploying php on paas- why & how
 
Php resque
Php resquePhp resque
Php resque
 
DNS for Developers - ConFoo Montreal
DNS for Developers - ConFoo MontrealDNS for Developers - ConFoo Montreal
DNS for Developers - ConFoo Montreal
 
How domain name servers work
How domain name servers workHow domain name servers work
How domain name servers work
 
Hosts para a info
Hosts para a infoHosts para a info
Hosts para a info
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Fabric: A Capistrano Alternative
Fabric:  A Capistrano AlternativeFabric:  A Capistrano Alternative
Fabric: A Capistrano Alternative
 
Hosts
HostsHosts
Hosts
 
Hosts
HostsHosts
Hosts
 
Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014
 

Dernier

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Dernier (20)

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Web server local for smarties

  • 1. MICHAEL ATKINS cubecolour.co.uk Wo r d Pr ess Ru n r PC all y on yo u lo c FOR M AR TI ES S w ith apolo gie s to Wiley ’s Fo r Dummi es S e ries WordCamp UK Portsmouth 2011
  • 5. What do we want to do? Run a local installation of WordPress on a PC
  • 6. What do we want to do? Run a local installation of WordPress on a PC How about multiple WordPress installations?
  • 7. Why? Kick the Tyres Development Limited Internet Access Present a Work in Progress Test Backups Test Upgrades
  • 8. Why? Kick the Tyres Development Limited Internet Access Present a Work in Progress Test Backups Test Upgrades
  • 9. Why? Kick the Tyres Development Limited Internet Access Present a Work in Progress Test Backups Test Upgrades
  • 10. NOT suitable to create a Live Web Server accessible via the internet
  • 12. What Components? APACHE PHP MySQL HTTP Scripting Database Server Language Windows / OSX / Linux Operating System
  • 13. What Components? PHPmyAdmin Database Management APACHE PHP MySQL HTTP Scripting Database Server Language Windows / OSX / Linux Operating System
  • 14.
  • 15. Apache L inux I LAMP
  • 16.
  • 17. L inux Unix-like Operating System based on the linux kernel Used on Servers, desktops, laptops, mobile phones, tablets, routers, consoles Name comes from the Linux Kernel originally written in 1991 by Linus Torvalds
  • 18. Officially named as a tribute to the Apache tribes of Native Americans Originally named Apache as it was a patchy Web server
  • 19. Officially named as a tribute to the Apache tribes of Native Americans Originally named Apache as it was a patchy Web server
  • 20. The world’s most popular Open Source Database
  • 21. The world’s most popular Open Source Database Database Management Web Application Create Databases Manage Databases
  • 22. Relational Database The world’s most popular Open Source Database Database Management Web Application Create Databases Manage Databases
  • 23. Nothing to do with Gong’s Pot Head Pixies
  • 24. Created by Rasmus Lerdorf in 1995 Officially stands for PHP: Hypertext Preprocessor Originally stood Nothing to do for Personal with Gong’s Pot Head Pixies Home Page
  • 26. I WAMP I MAMP
  • 27. XAMPP
  • 29. Current Versions of XAMPP at July 2011
  • 30. Current Versions of XAMPP at July 2011 Requirements XAMPP XAMPP XAMPP for WP v3.2.1 & later v1.7.4 v1.7.3 v1.7.4 5.2.4+ 5.3.5 5.3.1 5.3.5 5.0+ 5.5.8 5.1.44 5.5.8
  • 31. Demonstration Download & Install XAMPP on Windows XP Set MySQL Password Decide on names for our 2 sites Set up databases for 2 sites Copy WordPress files to 2 site directories Map Local Site names to our Local IP address Configure Apache for multiple sites Install WordPress for each site
  • 33. The Hosts File A system file on your computer Provides domain name resolution Overrides DNS
  • 34. Hosts
  • 35. Hosts t Corp. # Copyright (c) 1993-1999 Microsof # IP for Windows. STS file used by Microsoft TCP/ # This is a sample HO s. Each # e mappings of IP addresses to host name # This file contains th dual line. The IP addr ess should on an indivi host name. # entry should be kept by the corresponding t column followed # be placed in the firs should be separated by at least one the host name # The IP address and # space. dividual # (such as these) may be inserted on in # Additionally, comments by a '#' symbol. the machine name denoted # lines or following # # For example: # # source server 102.54.94.97 rh ino.acme.com # .com # x client host 38.25.63.10 x.acme # 127.0.0.1 localhost
  • 37. Location of Hosts /etc/hosts /etc/hosts C:windowssystem32driversetc
  • 39. Connection Information? lo calhost nobody xampp
  • 40. Migrating the site from local to public
  • 41. Migrating the site from local to public Backup Database on Local Copy Files To Webhost Create a Database on Webhost Restore backup to new database Run Search & Replace script Edit wp-config.php
  • 42. Running a Search & replace on the Database http://mytestsite.local http://www.myrealsite.com
  • 43. Running a Search & replace on the Database http://mytestsite.local http://www.myrealsite.com Dave Coveney’s WordPress Search & Replace Tool: http://interconnectit.com/124/search-and-replace-for-wordpress-databases/

Notes de l'éditeur

  1. \n
  2. Just in case anyone is wondering who I am. Here’s my name, twitter, WordPress.org forum name & web address\n\nThe strange piece of timber I’m holding in the pic is an NS-Design CR5M electric upright bass.\n
  3. Just in case anyone is wondering who I am. Here’s my name, twitter, WordPress.org forum name & web address\n\nThe strange piece of timber I’m holding in the pic is an NS-Design CR5M electric upright bass.\n
  4. Just in case anyone is wondering who I am. Here’s my name, twitter, WordPress.org forum name & web address\n\nThe strange piece of timber I’m holding in the pic is an NS-Design CR5M electric upright bass.\n
  5. Just in case anyone is wondering who I am. Here’s my name, twitter, WordPress.org forum name & web address\n\nThe strange piece of timber I’m holding in the pic is an NS-Design CR5M electric upright bass.\n
  6. Just in case anyone is wondering who I am. Here’s my name, twitter, WordPress.org forum name & web address\n\nThe strange piece of timber I’m holding in the pic is an NS-Design CR5M electric upright bass.\n
  7. Just in case anyone is wondering who I am. Here’s my name, twitter, WordPress.org forum name & web address\n\nThe strange piece of timber I’m holding in the pic is an NS-Design CR5M electric upright bass.\n
  8. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  9. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  10. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  11. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  12. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  13. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  14. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  15. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  16. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  17. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  18. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  19. Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  20. Kick the Tyres\nplay with an offline installation without paying a Web Hosting Company or risk breaking our main site\n\nDelevelopment\nyou can work anywhere - not dependent on a good internet connection\n\nPresent a Work in Progress at a clients site\nkeep control of the mouse by using your own laptop without having to mess around getting set up on their network. Also without having to use their PC which if its in a meeting room is probably a crappy old one set up for powerpoint 2000 which will have have IE6 on it.\n\nTest that you can restore a backup\nIf you can’t restore it, its not a backup\n\nTest updates\nTest for problems with new version of WP, new plugins, theme customisations, Theme upgrades, Plugin Upgrades. Any problems found can be fixed before going to the live server\n
  21. Kick the Tyres\nplay with an offline installation without paying a Web Hosting Company or risk breaking our main site\n\nDelevelopment\nyou can work anywhere - not dependent on a good internet connection\n\nPresent a Work in Progress at a clients site\nkeep control of the mouse by using your own laptop without having to mess around getting set up on their network. Also without having to use their PC which if its in a meeting room is probably a crappy old one set up for powerpoint 2000 which will have have IE6 on it.\n\nTest that you can restore a backup\nIf you can’t restore it, its not a backup\n\nTest updates\nTest for problems with new version of WP, new plugins, theme customisations, Theme upgrades, Plugin Upgrades. Any problems found can be fixed before going to the live server\n
  22. Security!\n
  23. The components we need for a web server to setup & run WordPress\n
  24. The components we need for a web server to setup & run WordPress\n
  25. The components we need for a web server to setup & run WordPress\n
  26. The components we need for a web server to setup & run WordPress\n
  27. The components we need for a web server to setup & run WordPress\n
  28. Web Servers on the Internet commonly use a “LAMP” stack. \n\nThis refers to the combination of software installed on the server\nLinux OS\nApache Web Server\nMySQL database\nPHP scripting language\n
  29. Web Servers on the Internet commonly use a “LAMP” stack. \n\nThis refers to the combination of software installed on the server\nLinux OS\nApache Web Server\nMySQL database\nPHP scripting language\n
  30. Web Servers on the Internet commonly use a “LAMP” stack. \n\nThis refers to the combination of software installed on the server\nLinux OS\nApache Web Server\nMySQL database\nPHP scripting language\n
  31. Web Servers on the Internet commonly use a “LAMP” stack. \n\nThis refers to the combination of software installed on the server\nLinux OS\nApache Web Server\nMySQL database\nPHP scripting language\n
  32. Web Servers on the Internet commonly use a “LAMP” stack. \n\nThis refers to the combination of software installed on the server\nLinux OS\nApache Web Server\nMySQL database\nPHP scripting language\n
  33. Web Servers on the Internet commonly use a “LAMP” stack. \n\nThis refers to the combination of software installed on the server\nLinux OS\nApache Web Server\nMySQL database\nPHP scripting language\n
  34. Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  35. Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  36. Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  37. Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  38. Apache is an open source http server\nThis serves the pages to the browser\npic: Geronimo\n
  39. phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  40. phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  41. phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  42. phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  43. PHP: a popular Scripting Language for the web\nWordPress code is written in PHP\nNothing to do with Gong’s Pot Head Pixies\n
  44. PHP: a popular Scripting Language for the web\nWordPress code is written in PHP\nNothing to do with Gong’s Pot Head Pixies\n
  45. A LAMP stack is what we use on Linux machine, we can also install a\n\nWAMP stack\nto run a web server on Windows\n\nMAMP stack\nto run a web server on Mac OSX\n
  46. A LAMP stack is what we use on Linux machine, we can also install a\n\nWAMP stack\nto run a web server on Windows\n\nMAMP stack\nto run a web server on Mac OSX\n
  47. A LAMP stack is what we use on Linux machine, we can also install a\n\nWAMP stack\nto run a web server on Windows\n\nMAMP stack\nto run a web server on Mac OSX\n
  48. A few different solutions are available to install all the software we need, but I am going to outline using a free package called XAMPP which is available for each of these platforms and is a free download from\nhttp://www.apachefriends.org\n
  49. A few different solutions are available to install all the software we need, but I am going to outline using a free package called XAMPP which is available for each of these platforms and is a free download from\nhttp://www.apachefriends.org\n
  50. A few different solutions are available to install all the software we need, but I am going to outline using a free package called XAMPP which is available for each of these platforms and is a free download from\nhttp://www.apachefriends.org\n
  51. A few different solutions are available to install all the software we need, but I am going to outline using a free package called XAMPP which is available for each of these platforms and is a free download from\nhttp://www.apachefriends.org\n
  52. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  53. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  54. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  55. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  56. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  57. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  58. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  59. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  60. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  61. The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  62. \n
  63. \n
  64. 127.0.0.1 is called the loopback address.\nThe default host file entry shown will allow you to type localhost into your browser and view the website you are hosting on the same machine.\n
  65. The location of the hosts file is shown for current versions of the Operating Systems.\n
  66. The location of the hosts file is shown for current versions of the Operating Systems.\n
  67. The location of the hosts file is shown for current versions of the Operating Systems.\n
  68. The location of the hosts file is shown for current versions of the Operating Systems.\n
  69. The location of the hosts file is shown for current versions of the Operating Systems.\n
  70. The location of the hosts file is shown for current versions of the Operating Systems.\n
  71. Extra tip\nWhen attempting an auto update of a theme, a plugin, or WordPress core files, if the user account that apache is running under does not own the WordPress directory, you will be prompted to put in ftp credentials.\n\nYou should be able to use:\nHostname:localhost\nFTP username:nobody\nFTP Password:xampp\n
  72. Extra tip\nWhen attempting an auto update of a theme, a plugin, or WordPress core files, if the user account that apache is running under does not own the WordPress directory, you will be prompted to put in ftp credentials.\n\nYou should be able to use:\nHostname:localhost\nFTP username:nobody\nFTP Password:xampp\n
  73. Extra tip\nWhen attempting an auto update of a theme, a plugin, or WordPress core files, if the user account that apache is running under does not own the WordPress directory, you will be prompted to put in ftp credentials.\n\nYou should be able to use:\nHostname:localhost\nFTP username:nobody\nFTP Password:xampp\n
  74. Extra tip\nWhen attempting an auto update of a theme, a plugin, or WordPress core files, if the user account that apache is running under does not own the WordPress directory, you will be prompted to put in ftp credentials.\n\nYou should be able to use:\nHostname:localhost\nFTP username:nobody\nFTP Password:xampp\n
  75. When migrating from a local to to a live site\nWhen testing backups of a live site can be restored locally\n
  76. \n