• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Web server local for smarties
 

Web server local for smarties

on

  • 376 views

 

Statistics

Views

Total Views
376
Views on SlideShare
376
Embed Views
0

Actions

Likes
0
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

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
  • \n
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • Run a WordPress site on your PC locally\nAlso there are a couple of extra steps to enable us to run several sites\n
  • 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
  • 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
  • Security!\n
  • The components we need for a web server to setup & run WordPress\n
  • The components we need for a web server to setup & run WordPress\n
  • The components we need for a web server to setup & run WordPress\n
  • The components we need for a web server to setup & run WordPress\n
  • The components we need for a web server to setup & run WordPress\n
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  • Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  • Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  • Linux powers Servers, desktops, laptops, mobile phones, tablets, routers, consoles\n
  • Apache is an open source http server\nThis serves the pages to the browser\npic: Geronimo\n
  • phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  • phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  • phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  • phpMyAdmin is a free software tool written in PHP designed to handle the administration of MySQL over the World Wide Web.\n
  • PHP: a popular Scripting Language for the web\nWordPress code is written in PHP\nNothing to do with Gong’s Pot Head Pixies\n
  • PHP: a popular Scripting Language for the web\nWordPress code is written in PHP\nNothing to do with Gong’s Pot Head Pixies\n
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • The current versions of XAMPP (at July 2011) for each platform meet therequirements for Installing and using the latest version of WordPress.\n
  • \n
  • \n
  • 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
  • The location of the hosts file is shown for current versions of the Operating Systems.\n
  • The location of the hosts file is shown for current versions of the Operating Systems.\n
  • The location of the hosts file is shown for current versions of the Operating Systems.\n
  • The location of the hosts file is shown for current versions of the Operating Systems.\n
  • The location of the hosts file is shown for current versions of the Operating Systems.\n
  • The location of the hosts file is shown for current versions of the Operating Systems.\n
  • 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
  • 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
  • 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
  • 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
  • When migrating from a local to to a live site\nWhen testing backups of a live site can be restored locally\n
  • \n

Web server local for smarties Web server local for smarties Presentation Transcript

  • MICHAEL ATKINScubecolour.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 Atkinsmichael@cubecolour.co.uk @cubecolour cubecolour cubecolour.co.uk
  • What do wewant 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 TyresDevelopmentLimited Internet AccessPresent a Work in ProgressTest BackupsTest Upgrades
  • Why?Kick the TyresDevelopmentLimited Internet AccessPresent a Work in ProgressTest BackupsTest Upgrades
  • Why?Kick the TyresDevelopmentLimited Internet AccessPresent a Work in ProgressTest BackupsTest Upgrades
  • NOT suitable to create aLive 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
  • ApacheL 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 atribute to the Apachetribes of Native AmericansOriginally named Apacheas it was a patchy Webserver
  • Officially named as atribute to the Apachetribes of Native AmericansOriginally named Apacheas it was a patchy Webserver
  • The world’s most popularOpen Source Database
  • The world’s most popular Open Source DatabaseDatabase Management Web Application Create Databases Manage Databases
  • Relational Database The world’s most popular Open Source DatabaseDatabase Management Web Application Create Databases Manage Databases
  • Nothing to dowith Gong’s Pot Head Pixies
  • Created byRasmus Lerdorfin 1995Officially standsfor PHP:HypertextPreprocessorOriginally stood Nothing to dofor Personal with Gong’s Pot Head PixiesHome Page
  • IWAMP
  • IWAMP I MAMP
  • XAMPP
  • XAMPPhttp://www.apachefriends.org
  • Current Versions of XAMPP at July 2011
  • Current Versions of XAMPP at July 2011 Requirements XAMPP XAMPP XAMPPfor 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
  • DemonstrationDownload & Install XAMPP on Windows XPSet MySQL PasswordDecide on names for our 2 sitesSet up databases for 2 sitesCopy WordPress files to 2 site directoriesMap Local Site names to our Local IP addressConfigure Apache for multiple sitesInstall WordPress for each site
  • The Hosts File
  • The Hosts FileA system file on your computerProvides domain name resolutionOverrides 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
  • ConnectionInformation?
  • ConnectionInformation? lo calhost nobody xampp
  • Migrating the sitefrom local to public
  • Migrating the sitefrom 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.comDave Coveney’s WordPress Search & Replace Tool:http://interconnectit.com/124/search-and-replace-for-wordpress-databases/