localhosting wordpress

12

Click here to load reader

Upload: owen-winkler

Post on 21-May-2015

75 views

Category:

Technology


0 download

DESCRIPTION

A presentation for the Philly 'Burbs WordPress meetup concerning using a local computer (a desktop or laptop in your own office/home) to host a WordPress website, and how to go about that process on a Windows system

TRANSCRIPT

Page 1: Localhosting WordPress

LOCALHOSTINGWORDPRESS

Page 2: Localhosting WordPress

WHO BE DATOwen Winkler

Web Architect @ [email protected]

Critical Hit

Page 3: Localhosting WordPress

WHAT IS LOCALHOSTING?Use your own computer as a server

Page 4: Localhosting WordPress

WHY SERVE FROM LOCALHOST?PHP doesn't run when you access the files directly

Page 5: Localhosting WordPress

ADVANTAGESDoesn't taint productionNo network requiredConfigure your environment how you likeFaster deployment while testingEasier to use a debuggerLess $$ than using a host!

Page 6: Localhosting WordPress

REQUIREMENTSA computerServer Software - Apache/Nginx/Lighty, MySQLWordPress

Page 9: Localhosting WordPress

SEPARATE INSTALLATION?Why do this?

Page 10: Localhosting WordPress

VIRTUALHOST AND /ETC/HOSTSOh man, Owen just took us down the rabbit hole...

hostname - The "domain name" of your server, points to an IPaddress.DNS - A service (usually provided by your ISP) that associatesa domain to an IP.VirtualHost - A configuration that associates a directory ofweb files with a hostname and IP address./etc/hosts - A file on your computer that lets you override theIP address for any domain.

Page 11: Localhosting WordPress

APACHE MODULESApache modules provide extra functionality beyond just what

Apache does by itself.

Some useful modules:mod_phpmod_deflatemod_expiresmod_vhost_alias

Page 12: Localhosting WordPress

MAPPING A DOMAIN TO A DIRECTORYOR, WHY I BOTHERED TO MENTION ANY OF THIS...

<VirtualHost *:80> UseCanonicalName Off VirtualDocumentRoot "c:/wamp/www/%0/htdocs" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "c:/wamp/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory></VirtualHost>