TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
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
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
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
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
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
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/
Notas do Editor
\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