localhosting wordpress
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 systemTRANSCRIPT
LOCALHOSTINGWORDPRESS
WHAT IS LOCALHOSTING?Use your own computer as a server
WHY SERVE FROM LOCALHOST?PHP doesn't run when you access the files directly
ADVANTAGESDoesn't taint productionNo network requiredConfigure your environment how you likeFaster deployment while testingEasier to use a debuggerLess $$ than using a host!
REQUIREMENTSA computerServer Software - Apache/Nginx/Lighty, MySQLWordPress
WINDOWS SERVERSWAMPXAMPPAprelium AbyssMany Alternatives..
MAC SERVERSMAMPMacPorts
SEPARATE INSTALLATION?Why do this?
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.
APACHE MODULESApache modules provide extra functionality beyond just what
Apache does by itself.
Some useful modules:mod_phpmod_deflatemod_expiresmod_vhost_alias
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>