Note that the environment file uses tier 2 addresses unlike the tier 1 server. I could have opened the firewall ports for services to all one interface so the environment files would use the same values.
WordPress was installed into /var/www and configured to talk to the MySQL database in tier three. You can see the WordPress config has the tier3 name in the database field and that all WordPress files are installed into /var/www.
/etc/environment
#
azcrumpty@tier2:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
http_proxy="http://[fd01:470:f379:32::1]:3128"
https_proxy="http://[fd01:470:f379:32::1]:3128"
ftp_proxy="http://[fd01:470:f379:32::1]:3128"
/etc/resolv.conf
azcrumpty@tier2:~$ cat /etc/resolvconf/resolv.conf.d/base
nameserver fd01:470:f379:32::1
domain chickenkiller.com
search chickenkiller.com
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#iface eth0 inet dhcp
# This is an autoconfigured IPv6 interface
auto eth2
iface eth2 inet6 static
address fd01:470:f379:32::20
netmask 64
gateway fd01:470:f379:32::1
wp-config.php
define('DB_HOST', 'tier3.chickenkiller.com');
/var/www
azcrumpty@tier2:~$ ls -ltr /var/www
total 172
-rw-r--r-- 1 wpwriter wpwriter 1997 Oct 23 2010 wp-links-opml.php
-rw-r--r-- 1 wpwriter wpwriter 3177 Nov 1 2010 wp-config-sample.php
-rw-r--r-- 1 wpwriter wpwriter 4264 Dec 13 2011 wp-activate.php
-rw-r--r-- 1 wpwriter wpwriter 3700 Jan 8 2012 wp-trackback.php
-rw-r--r-- 1 wpwriter wpwriter 271 Jan 8 2012 wp-blog-header.php
-rw-r--r-- 1 wpwriter wpwriter 395 Jan 8 2012 index.php
-rw-r--r-- 1 wpwriter wpwriter 2726 Jan 9 2012 wp-cron.php
-rw-r--r-- 1 wpwriter wpwriter 2788 Feb 16 2012 xmlrpc.php
-rw-r--r-- 1 wpwriter wpwriter 3522 Apr 10 11:21 wp-comments-post.php
-rw-r--r-- 1 wpwriter wpwriter 18299 Apr 21 00:40 wp-signup.php
-rw-r--r-- 1 wpwriter wpwriter 9916 Apr 26 22:54 wp-settings.php
-rw-r--r-- 1 wpwriter wpwriter 7712 May 2 07:32 wp-mail.php
-rw-r--r-- 1 wpwriter wpwriter 19929 May 6 01:28 license.txt
-rw-r--r-- 1 wpwriter wpwriter 1354 May 13 15:41 wp-app.php
-rw-r--r-- 1 wpwriter wpwriter 29084 Jun 26 12:53 wp-login.php
-rw-r--r-- 1 wpwriter wpwriter 9177 Sep 3 17:23 readme.html
-rw-r--r-- 1 wpwriter wpwriter 2395 Sep 4 14:31 wp-load.php
drwxr-xr-x 8 wpwriter wpwriter 4096 Sep 6 13:43 wp-includes
drwxr-xr-x 4 wpwriter wpwriter 4096 Sep 6 13:43 wp-content
drwxr-xr-x 9 wpwriter wpwriter 4096 Sep 6 13:43 wp-admin
-r--r--r-- 1 wpwriter wpwriter 3670 Sep 29 20:38 wp-config.php
-rw-r--r-- 1 wpwriter wpwriter 1150 Sep 29 23:46 favicon.ico
Previous: Tier 1 Reverse Proxy | Next: Tier 3 MySQL Database |