<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #873: New Wordpress site please</title>
    <link>http://localhost:8080/trac/ticket/873</link>
    <description>&lt;p&gt;
Hi Chris
&lt;/p&gt;
&lt;p&gt;
I couldn't ssh into parrot for some reason, I think you said you created me a 'sam' user on there but I can't get in.
&lt;/p&gt;
&lt;p&gt;
So could you set up a new Wordpress site on there.
&lt;/p&gt;
&lt;p&gt;
wpdev.tn.org or similar, it's only going to be for testing some stuff so URL doesn't really matter.
&lt;/p&gt;
&lt;p&gt;
Thanks
&lt;/p&gt;
&lt;p&gt;
Sam
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/873</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 22 Sep 2015 13:03:18 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Looking at &lt;tt&gt;/var/log/auth.log&lt;/tt&gt; the reason you couldn't ssh in is because you got the password wrong:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Sep 22 13:20:22 parrot sshd[22277]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=sam
Sep 22 13:20:24 parrot sshd[22277]: Failed password for sam from XX.XX.XX.XX port 60655 ssh2
Sep 22 13:20:31 parrot sshd[22277]: Failed password for sam from XX.XX.XX.XX port 60655 ssh2
Sep 22 13:20:33 parrot sshd[22277]: Failed password for sam from XX.XX.XX.XX port 60655 ssh2
Sep 22 13:20:33 parrot sshd[22277]: Connection closed by XX.XX.XX.XX [preauth]
&lt;/pre&gt;&lt;p&gt;
The server does have your ssh public key installed so you shouldn't need to use a password to login...
&lt;/p&gt;
&lt;p&gt;
Following the notes at &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer#AddingaNewWordPressSite"&gt;wiki:ParrotServer#AddingaNewWordPressSite&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;curses-create-user
  gpg: no default secret key: unusable secret key
  gpg: [stdin]: clearsign failed: unusable secret key
&lt;/pre&gt;&lt;p&gt;
So the root GPG key has expired and this caused the email notifications to fail, I'll get that sorted for next time.
&lt;/p&gt;
&lt;p&gt;
The transitionnetwork.org zone files was updated to add:
&lt;/p&gt;
&lt;pre class="wiki"&gt;wpdev 3600 IN A 81.95.52.43
&lt;/pre&gt;&lt;p&gt;
And &lt;tt&gt;/root/webarch/accounts/sites.txt&lt;/tt&gt; was edited:
&lt;/p&gt;
&lt;pre class="wiki"&gt;wpdev default wpdev.parrot.webarch.net wpdev.parrot.transitionnetwork.org,wpdev.transitionnetwork.org
&lt;/pre&gt;&lt;p&gt;
The apache config was recreated:
&lt;/p&gt;
&lt;pre class="wiki"&gt;buildapache wpdev
&lt;/pre&gt;&lt;p&gt;
The site URL was updated:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - wpdev -s /bin/bash
source /etc/bash_completion.d/wp
cd sites/default/
wp search-replace "wpdev.parrot.webarch.net" "wpdev.transitionnetwork.org"
+------------------+-----------------------+--------------+------+
| Table            | Column                | Replacements | Type |
+------------------+-----------------------+--------------+------+
| wp_options       | option_value          | 3            | PHP  |
| wp_posts         | post_content          | 1            | SQL  |
| wp_posts         | guid                  | 2            | SQL  |
+------------------+-----------------------+--------------+------+
Success: Made 6 replacements.
wp search-replace "http://wpdev.transitionnetwork.org" "https://wpdev.transitionnetwork.org"
+------------------+-----------------------+--------------+------+
| Table            | Column                | Replacements | Type |
+------------------+-----------------------+--------------+------+
| wp_options       | option_value          | 2            | PHP  |
| wp_posts         | post_content          | 1            | SQL  |
| wp_posts         | guid                  | 2            | SQL  |
+------------------+-----------------------+--------------+------+
Success: Made 5 replacements.
&lt;/pre&gt;&lt;p&gt;
A &lt;tt&gt;~/sites/default/.htaccess&lt;/tt&gt; file was created containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;# Redirect HTTP to HTTPS
# https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
&amp;lt;IfModule mod_rewrite.c&amp;gt;
  RewriteEngine on
  RewriteCond %{HTTPS} !=on
  RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
&amp;lt;/IfModule&amp;gt;
# STS Header
# https://stackoverflow.com/questions/24144552/how-to-set-hsts-header-from-htaccess-only-on-https
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
&lt;/pre&gt;&lt;p&gt;
As per &lt;a class="ext-link" href="https://docs.webarch.net/wiki/HTAccess#Enforcing_HTTPS"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://docs.webarch.net/wiki/HTAccess#Enforcing_HTTPS&lt;/a&gt; to ensure that HTTPS is use to access the site.
&lt;/p&gt;
&lt;p&gt;
But we need to wait for the DNS to update before this will work:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wpdev.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wpdev.transitionnetwork.org/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Because the wild card entry means that the sub-domain points to &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;PuffinServer&lt;/a&gt; not &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer"&gt;ParrotServer&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;dig wpdev.transitionnetwork.org +short
81.95.52.103
&lt;/pre&gt;&lt;p&gt;
This should update soon... but the Gandi servers haven't updated yet:
&lt;/p&gt;
&lt;pre class="wiki"&gt;dig @A.DNS.GANDI.NET wpdev.transitionnetwork.org +short
81.95.52.103
&lt;/pre&gt;&lt;p&gt;
Copying Sam's ssh key to the new &lt;tt&gt;wpdev&lt;/tt&gt; account:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cp -a /home/sam/.ssh/ /home/wpdev/
chown -R wpdev:wpdev -R /home/wpdev/.ssh/
&lt;/pre&gt;&lt;p&gt;
Sam -- you should be able to login via SFTP to the &lt;tt&gt;wpdev&lt;/tt&gt; account and / or your &lt;tt&gt;sam&lt;/tt&gt; account using your ssh private key and then you can get the MySQL password from &lt;tt&gt;/home/wpdev/sites/default/wp-config.php&lt;/tt&gt; for using with &lt;a class="ext-link" href="https://parrot.transitionnetwork.org/phpmyadmin/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;phpMyAdmin&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
To get the &lt;a class="wiki" href="http://localhost:8080/trac/wiki/WordPress"&gt;WordPress&lt;/a&gt; password reset (as the email perhaps wan't sent with the password?) you can use this URL once the DNS has updated:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wpdev.transitionnetwork.org/wp-login.php?action=lostpassword"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wpdev.transitionnetwork.org/wp-login.php?action=lostpassword&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
I think that is all I need to do?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 22 Sep 2015 13:30:15 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.5&lt;/em&gt; to &lt;em&gt;0.6&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The GANDI primary DNS server has now updated:
&lt;/p&gt;
&lt;pre class="wiki"&gt;dig @A.DNS.GANDI.NET wpdev.transitionnetwork.org +short
81.95.52.43
&lt;/pre&gt;&lt;p&gt;
It shouldn't take too long for other DNS servers to also update, but remember that browsers also cache DNS, this Firefox plugin is handy for this:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://addons.mozilla.org/en-US/firefox/addon/dns-flusher/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://addons.mozilla.org/en-US/firefox/addon/dns-flusher/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 22 Sep 2015 13:38:06 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.6&lt;/em&gt; to &lt;em&gt;0.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Oops I forgot to change the SSL/TLS cert sym links:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/ssl/wsh
rm wpdev.parrot.webarch.net-cert.pem ; ln -s ../transitionnetwork.org/transitionnetwork.org.crt wpdev.parrot.webarch.net-cert.pem
rm wpdev.parrot.webarch.net-key.pem ; ln -s ../transitionnetwork.org/transitionnetwork.org.key wpdev.parrot.webarch.net-key.pem
rm wpdev.parrot.webarch.net-root.pem ; ln -s ../transitionnetwork.org/gandi.pem wpdev.parrot.webarch.net-root.pem
apache2ctl configtest
  Syntax OK
service apache2 restart
  [....] Restarting web server: apache2 ... waiting ..........(98)Address already in use: make_sock: could not bind to address [::]:80
  (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
  no listening sockets available, shutting down
  Unable to open logs
  Action 'start' failed.
  The Apache error log may have more information.
   failed!
service spache2 start
  [....] Starting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80
  (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
  no listening sockets available, shutting down
  Unable to open logs
  Action 'start' failed.
  The Apache error log may have more information.
   failed!
killall -9 apache2
service apache2 start
  [ ok ] Starting web server: apache2.
&lt;/pre&gt;&lt;p&gt;
Phew!
&lt;/p&gt;
&lt;p&gt;
So now the site is available with HTTPS:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wpdev.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wpdev.transitionnetwork.org/&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.ssllabs.com/ssltest/analyze.html?d=wpdev.transitionnetwork.org&amp;amp;s=81.95.52.43&amp;amp;latest"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.ssllabs.com/ssltest/analyze.html?d=wpdev.transitionnetwork.org&amp;amp;s=81.95.52.43&amp;amp;latest&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 22 Sep 2015 16:38:41 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.75&lt;/em&gt; to &lt;em&gt;1.0&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Sam has reported that his IP address has been blocked, &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer"&gt;ParrotServer&lt;/a&gt; is running Deny Hosts which adds IP addresses to &lt;tt&gt;/etc/hosts.deny&lt;/tt&gt; if there are too many failed login attempts, however Apache doesn't use &lt;tt&gt;/etc/hosts.deny&lt;/tt&gt; and his IP isn't listed there... Also iptables blocked IP addresses are just for some that have been running brute force attacks against the server (see
&lt;a class="new ticket" href="http://localhost:8080/trac/ticket/871" title="maintenance: Brute Force Attacks Against WordPress Sites (new)"&gt;ticket:871&lt;/a&gt; ):
&lt;/p&gt;
&lt;pre class="wiki"&gt;
iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
DROP       all  --  217.174.240.254      0.0.0.0/0
DROP       all  --  185.11.147.17        0.0.0.0/0
DROP       all  --  23.94.144.162        0.0.0.0/0
DROP       all  --  185.62.188.91        0.0.0.0/0
DROP       all  --  212.50.12.41         0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
&lt;/pre&gt;&lt;p&gt;
So, this is puzzling... Sam can you double check your IP address? I have added the one that had all the failed &lt;tt&gt;ssh&lt;/tt&gt; logins earlier to &lt;tt&gt;/etc/hosts.allow&lt;/tt&gt; but as I said Apache doesn't use this and also you are not listed in &lt;tt&gt;/etc/hosts.deny&lt;/tt&gt;... There is this page on &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer"&gt;ParrotServer&lt;/a&gt; for checking your IP (though this won't work if you can't access it..):
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://parrot.transitionnetwork.org/myip.shtml"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://parrot.transitionnetwork.org/myip.shtml&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
I can't see why you can't access the server...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>sam</dc:creator>

      <pubDate>Tue, 22 Sep 2015 16:45:09 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/873#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:5</guid>
      <description>
        &lt;p&gt;
Access to parrot is fine. It's Puffin I can't access.
&lt;/p&gt;
&lt;p&gt;
Sorry should have been more clear..
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 22 Sep 2015 20:03:30 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.35&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.0&lt;/em&gt; to &lt;em&gt;1.35&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/873#comment:5" title="Comment 5 for Ticket #873"&gt;sam&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Access to parrot is fine. It's Puffin I can't access.
&lt;/p&gt;
&lt;p&gt;
Sorry should have been more clear..
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
No it was my fault, your email was clear, I scanned it too quickly and assumed the issues was with &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer"&gt;ParrotServer&lt;/a&gt; due to previous problems.
&lt;/p&gt;
&lt;p&gt;
Following &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#Falsepositives"&gt;wiki:PuffinServer#Falsepositives&lt;/a&gt; :
&lt;/p&gt;
&lt;pre class="wiki"&gt;csf -g XX.XX.XX.XX
  Chain            num   pkts bytes target     prot opt in     out     source               destination
  DENYIN           98       0     0 DROP       all  --  !lo    *       XX.XX.XX.XX         0.0.0.0/0
  DENYOUT          98       0     0 LOGDROPOUT  all  --  *      !lo     0.0.0.0/0            XX.XX.XX.XX
  csf.deny: XX.XX.XX.XX # lfd: (sshd) Failed SSH login from XX.XX.XX.XX (GB/United Kingdom/-): 5 in the last 300 secs - Tue Sep 22 12:52:06 2015
csf -dr XX.XX.XX.XX
  Removing rule...
  DROP  all opt -- in !lo out *  XX.XX.XX.XX  -&amp;gt; 0.0.0.0/0
  LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -&amp;gt; XX.XX.XX.XX
csf -dr XX.XX.XX.XX
  Removing rule...
  DROP  all opt -- in !lo out *  XX.XX.XX.XX  -&amp;gt; 0.0.0.0/0
  LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -&amp;gt; XX.XX.XX.XX
csf -g XX.XX.XX.XX
  Chain            num   pkts bytes target     prot opt in     out     source               destination
  No matches found for XX.XX.XX.XX in iptables
&lt;/pre&gt;&lt;p&gt;
Looking in the &lt;tt&gt;auth.log&lt;/tt&gt; you have had failed passwd attempts:
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep XX.XX.XX.XX /var/log/auth.log
  Sep 22 12:50:55 puffin sshd[29346]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=sam
  Sep 22 12:50:57 puffin sshd[29346]: Failed password for sam from XX.XX.XX.XX port 49332 ssh2
  Sep 22 12:51:08 puffin sshd[29346]: Failed password for sam from XX.XX.XX.XX port 49332 ssh2
  Sep 22 12:51:24 puffin sshd[29346]: Failed password for sam from XX.XX.XX.XX port 49332 ssh2
  Sep 22 12:51:24 puffin sshd[29346]: Connection closed by XX.XX.XX.XX [preauth]
  Sep 22 12:51:24 puffin sshd[29346]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=sam
  Sep 22 12:52:04 puffin sshd[31294]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=sam
  Sep 22 12:52:06 puffin sshd[31294]: Failed password for sam from XX.XX.XX.XX port 49336 ssh2
&lt;/pre&gt;&lt;p&gt;
But you have a ssh public key installed, does this need updating?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>sam</dc:creator>

      <pubDate>Wed, 14 Oct 2015 15:45:42 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/873#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:7</guid>
      <description>
        &lt;p&gt;
Hi Chris
&lt;/p&gt;
&lt;p&gt;
I'd like to get SSH working on this box again.
&lt;/p&gt;
&lt;p&gt;
The fingerprint for the key I now have is e7:84:95:0a:5d:30:79:3a:ea:2a:67:2b:f9:bf:2d:7d
&lt;/p&gt;
&lt;p&gt;
Is that the one you have?
&lt;/p&gt;
&lt;p&gt;
It's associated with sam@…
&lt;/p&gt;
&lt;p&gt;
Is there any other info you need to get it working?
&lt;/p&gt;
&lt;p&gt;
Thanks
&lt;/p&gt;
&lt;p&gt;
Sam
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 15 Oct 2015 09:24:22 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.35&lt;/em&gt; to &lt;em&gt;1.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/873#comment:7" title="Comment 7 for Ticket #873"&gt;sam&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
The fingerprint for the key I now have is e7:84:95:0a:5d:30:79:3a:ea:2a:67:2b:f9:bf:2d:7d
&lt;/p&gt;
&lt;p&gt;
Is that the one you have?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Seems not:
&lt;/p&gt;
&lt;pre class="wiki"&gt;ssh-keygen -lf /home/sam/.ssh/authorized_keys
2048 d0:73:e1:80:75:62:ab:24:f2:63:95:2d:74:75:d0:3d  sam@bristolwireless.net (RSA)
&lt;/pre&gt;&lt;p&gt;
Can you let me have you new public key please so I can add it to &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer"&gt;ParrotServer&lt;/a&gt; and &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;PuffinServer&lt;/a&gt;?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 15 Oct 2015 11:39:01 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:9</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.5&lt;/em&gt; to &lt;em&gt;1.6&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have updated your public keys on both servers:
&lt;/p&gt;
&lt;pre class="wiki"&gt;ssh-keygen -lf /home/sam/.ssh/authorized_keys
2048 e7:84:95:0a:5d:30:79:3a:ea:2a:67:2b:f9:bf:2d:7d  sam@bristolwireless.net (RSA)
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>sam</dc:creator>

      <pubDate>Tue, 20 Oct 2015 10:31:26 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/873#comment:10</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:10</guid>
      <description>
        &lt;p&gt;
Hi Chris
&lt;/p&gt;
&lt;p&gt;
This SSH isn't working (Probably my fault)
&lt;/p&gt;
&lt;p&gt;
Could you set up a new Wordpress site please; cop21.transitionnetwork.org
&lt;/p&gt;
&lt;p&gt;
We can try and get SSH working afterwards, but just getting the site up would be great.
&lt;/p&gt;
&lt;p&gt;
Thanks
&lt;/p&gt;
&lt;p&gt;
Sam
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 20 Oct 2015 11:15:59 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:11</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:11</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.6&lt;/em&gt; to &lt;em&gt;1.85&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/873#comment:10" title="Comment 10 for Ticket #873"&gt;sam&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This SSH isn't working (Probably my fault)
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
You don't appear to be using your ssh private key?
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep sam /var/log/auth.log.1
Oct 15 15:33:14 parrot sshd[24607]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=sam
Oct 15 15:33:17 parrot sshd[24607]: Failed password for sam from XX.XX.XX.XX port 60744 ssh2
&lt;/pre&gt;&lt;blockquote class="citation"&gt;
&lt;p&gt;
Could you set up a new Wordpress site please; cop21.transitionnetwork.org
&lt;/p&gt;
&lt;p&gt;
We can try and get SSH working afterwards, but just getting the site up would be great.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I have added the sub-domain at Gandi, run:
&lt;/p&gt;
&lt;pre class="wiki"&gt;curses-create-user
&lt;/pre&gt;&lt;p&gt;
Edited &lt;tt&gt;/root/webarch/accounts/sites.txt&lt;/tt&gt; to:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cop21 default cop21.parrot.webarch.net cop21.parrot.transitionnetwork.org,cop21.transitionnetwork.org
&lt;/pre&gt;&lt;p&gt;
Run:
&lt;/p&gt;
&lt;pre class="wiki"&gt;buildapache cop21
&lt;/pre&gt;&lt;p&gt;
Change the domain name for the site:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - cop21 -s /bin/bash
cd sites/default
wp search-replace "cop21.parrot.webarch.net" "cop21.transitionnetwork.org"
+------------------+-----------------------+--------------+------+
| Table            | Column                | Replacements | Type |
+------------------+-----------------------+--------------+------+
| wp_options       | option_value          | 3            | PHP  |
| wp_posts         | post_content          | 1            | SQL  |
| wp_posts         | guid                  | 3            | SQL  |
+------------------+-----------------------+--------------+------+
Success: Made 7 replacements.
&lt;/pre&gt;&lt;p&gt;
Change the SSL key / cert for the site:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/ssl/wsh/
rm cop21.parrot.webarch.net-cert.pem ; ln -s ../transitionnetwork.org/transitionnetwork.org.crt cop21.parrot.webarch.net-cert.pem
rm cop21.parrot.webarch.net-key.pem ; ln -s ../transitionnetwork.org/transitionnetwork.org.key cop21.parrot.webarch.net-key.pem
apache2ctl configtest
apache2ctl restart
&lt;/pre&gt;&lt;p&gt;
So once the DNS has updated it is all up and running (you can test it before this via a ssh tunnel to &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer"&gt;ParrotServer&lt;/a&gt; or by editing your &lt;tt&gt;/etc/hosts&lt;/tt&gt; file).
&lt;/p&gt;
&lt;p&gt;
Sam -- I could setup Piwik stats for this site if you would like?
&lt;/p&gt;
&lt;p&gt;
Anything else need doing?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 20 Oct 2015 11:56:46 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/873#comment:12</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:12</guid>
      <description>
        &lt;p&gt;
The Gandi DNS servers have updated now:
&lt;/p&gt;
&lt;pre class="wiki"&gt;dig @a.dns.gandi.net cop21.transitionnetwork.org +short
81.95.52.43
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>sam</dc:creator>

      <pubDate>Tue, 20 Oct 2015 12:05:05 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/873#comment:13</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:13</guid>
      <description>
        &lt;pre class="wiki"&gt;Thanks Chris.
I'm not getting access to the Admin interface on that URL:
http://cop21.transitionnetwork.org/wp-admin
Thanks
Sam
On 20 October 2015 at 12:56, Transition Technology Trac
&amp;lt;trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt; #873: New Wordpress site please
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;            Reporter:  sam            |                      Owner:  chris
&amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;           Component:  Parrot server  |  Maintenance
&amp;gt;            Keywords:                 |                 Resolution:
&amp;gt; Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
&amp;gt;         Total Hours:  1.85           |                  Billable?:  1
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;
&amp;gt; Comment (by chris):
&amp;gt;
&amp;gt;  The Gandi DNS servers have updated now:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  dig @a.dns.gandi.net cop21.transitionnetwork.org +short
&amp;gt;  81.95.52.43
&amp;gt;  }}}
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://tech.transitionnetwork.org/trac/ticket/873#comment:12&amp;gt;
&amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt; Support and issues tracking for the Transition Network Web Project.
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 20 Oct 2015 12:10:50 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/873#comment:14</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:14</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/873#comment:13" title="Comment 13 for Ticket #873"&gt;sam&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I'm not getting access to the Admin interface on that URL:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://cop21.transitionnetwork.org/wp-admin"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://cop21.transitionnetwork.org/wp-admin&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Login here (assuming your DNS servers have updated):
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://cop21.transitionnetwork.org/wp-login.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cop21.transitionnetwork.org/wp-login.php&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 20 Oct 2015 13:37:48 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/873</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;cop21.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 20 Oct 2015 13:44:05 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/873#comment:15</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/873#comment:15</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.85&lt;/em&gt; to &lt;em&gt;1.95&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The site appears like this for me:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/873/cop21.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/873/cop21.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
So I tried adding this to a &lt;tt&gt;~/sites/default.htaccess&lt;/tt&gt; file:
&lt;/p&gt;
&lt;pre class="wiki"&gt;# Redirect HTTP to HTTPS
# https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
&amp;lt;IfModule mod_rewrite.c&amp;gt;
  RewriteEngine on
  RewriteCond %{HTTPS} !=on
  RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
&amp;lt;/IfModule&amp;gt;
# STS Header
# https://stackoverflow.com/questions/24144552/how-to-set-hsts-header-from-htaccess-only-on-https
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
&lt;/pre&gt;&lt;p&gt;
But that hasn't solved it, so I ran this update on the database:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - cop21 -s /bin/bash
cd sites/default
wp search-replace "http://cop21.transitionnetwork.org" "https://cop21.transitionnetwork.org"
+------------------+-----------------------+--------------+------+
| Table            | Column                | Replacements | Type |
+------------------+-----------------------+--------------+------+
| wp_options       | option_value          | 3            | PHP  |
| wp_posts         | post_content          | 1            | SQL  |
| wp_posts         | guid                  | 5            | SQL  |
+------------------+-----------------------+--------------+------+
Success: Made 9 replacements.
&lt;/pre&gt;&lt;p&gt;
And now the site displays with images -- sorry not to have fixed that sooner.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>