<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #853: Parrot access please</title>
    <link>http://localhost:8080/trac/ticket/853</link>
    <description>&lt;p&gt;
Hi Chris
&lt;/p&gt;
&lt;p&gt;
Ade &amp;amp; I were going to have a play around with making a proof of concept Wordpress microsite on Parrot.
&lt;/p&gt;
&lt;p&gt;
Could you add me as a SSH user using the SSH keys associated with my sam@… account so I can follow the instructions here: &lt;a class="ext-link" href="https://trac.transitionnetwork.org/trac/wiki/ParrotServer#AddingaNewWordPressSite"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://trac.transitionnetwork.org/trac/wiki/ParrotServer#AddingaNewWordPressSite&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Or if you'd rather not do that, just spin up a site titled 'conference15' with a user 'conference15' and my TN email as the admin email.
&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/853</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 20 May 2015 09:20:35 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/853#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/853#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.65&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.65&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have added a &lt;tt&gt;sam&lt;/tt&gt; account on &lt;a class="wiki" href="http://localhost:8080/trac/wiki/ParrotServer"&gt;ParrotServer&lt;/a&gt; and given you password-less &lt;tt&gt;sudo&lt;/tt&gt;, regarding setting up a new &lt;a class="wiki" href="http://localhost:8080/trac/wiki/WordPress"&gt;WordPress&lt;/a&gt; site, I thought that the &lt;tt&gt;gpg&lt;/tt&gt; private key for the root user might have expired and that this would cause the account creation script to fail to send out a email, so I though I'd best create the account to see if this was the case and so I could work around it, but this doesn't seem to be the case, the site has been created:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://conference15.parrot.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://conference15.parrot.transitionnetwork.org/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
I have added a dns entry for &lt;tt&gt;conference15.transitionnetwork.org&lt;/tt&gt; (or would a shorter &lt;tt&gt;conf15.transitionnetwork.org&lt;/tt&gt; be better?) so the site can use the &lt;tt&gt;*.transitionnetwork.org&lt;/tt&gt; wildcard SSL/TLS cert.
&lt;/p&gt;
&lt;p&gt;
Running the account creation script it failed here:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress install exists under.
If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.
If you'd like to continue as root, please run this again, adding this flag:  --allow-root
If you'd like to run it as the user that this site is under, you can run the following to become the respective user:
    sudo -u USER -i -- wp ...
&lt;/pre&gt;&lt;p&gt;
So it needed &lt;tt&gt;--allow-root&lt;/tt&gt; adding to &lt;tt&gt;/usr/local/webarch/lib/func.sh&lt;/tt&gt;, the &lt;tt&gt;conference15&lt;/tt&gt; user was deleted and the &lt;tt&gt;curses-create-user&lt;/tt&gt; script was re-run and then &lt;tt&gt;/root/webarch/accounts/sites.txt&lt;/tt&gt; was edited to add additional domain names:
&lt;/p&gt;
&lt;pre class="wiki"&gt;conference15 default conference15.parrot.webarch.net conference15.transitionnetwork.org,www.conference15.transitionnetwork.org,conference15.parrot.transitionnetwork.org,www.conference15.parrot.transitionnetwork.org
&lt;/pre&gt;&lt;p&gt;
Then the Apache config was rebuilt by running &lt;tt&gt;buildapache conference15&lt;/tt&gt;, the cert and key were switched to use the &lt;tt&gt;*.transitionnetwork.org&lt;/tt&gt; wildcard one (after it was copied from &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PenguinServer"&gt;PenguinServer&lt;/a&gt;):
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/ssl/wsh/
rm conference15.parrot.webarch.net-cert.pem ; ln -s ../transitionnetwork.org/transitionnetwork.org.crt conference15.parrot.webarch.net-cert.pem
rm conference15.parrot.webarch.net-key.pem ; ln -s ../transitionnetwork.org/transitionnetwork.org.key conference15.parrot.webarch.net-key.pem
rm conference15.parrot.webarch.net-root.pem ; ln -s ../transitionnetwork.org/gandi.pem conference15.parrot.webarch.net-root.pem
&lt;/pre&gt;&lt;p&gt;
Then change the site URL in the MySQL database:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - conference15 -s /bin/bash
cd sites/default/
wp search-replace "conference15.parrot.webarch.net" "conference15.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://conference15.transitionnetwork.org" "https://conference15.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;
I have updated the DNS so now it is simply a matter of waiting for that top propergate, then the site will be available here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://conference15.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://conference15.transitionnetwork.org/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
(If you get a "under construction page" then you are getting &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;PuffinServer&lt;/a&gt; and the DNS hasn't updated for you yet).
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 20 May 2015 09:26:18 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/853#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/853#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.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.65&lt;/em&gt; to &lt;em&gt;0.8&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I also created a &lt;tt&gt;.htaccess&lt;/tt&gt; file and added these rules to ensure HTTPS is used:
&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;
The above taken from &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;
&lt;/p&gt;
&lt;p&gt;
Let me know if you want &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PiwikServer"&gt;PiwikServer&lt;/a&gt; stats for this site and I'll create an account for it and add the &lt;a class="wiki" href="http://localhost:8080/trac/wiki/WordPress"&gt;WordPress&lt;/a&gt; Piwik plugin, &lt;a class="ext-link" href="https://wordpress.org/plugins/wp-piwik/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wordpress.org/plugins/wp-piwik/&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 20 May 2015 09:31:36 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/853#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/853#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.05&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.8&lt;/em&gt; to &lt;em&gt;0.85&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Note that the Gandi DNS servers have still to update:
&lt;/p&gt;
&lt;pre class="wiki"&gt;dig @A.DNS.GANDI.NET conference15.transitionnetwork.org +short
  81.95.52.103
&lt;/pre&gt;&lt;p&gt;
The IP address above should be &lt;tt&gt;81.95.52.43&lt;/tt&gt;, this is the current Gandi Zone file (omitting the Google site verification entries):
&lt;/p&gt;
&lt;pre class="wiki"&gt;* 3600 IN A 81.95.52.103
*.newdev 3600 IN A 81.95.52.103
*.parrot 3600 IN A 81.95.52.43
2010.archive 3600 IN A 81.95.52.111
2011.archive 3600 IN A 81.95.52.111
@ 3600 IN A 81.95.52.103
conference15 3600 IN A 81.95.52.43
lists 3600 IN A 212.113.133.235
mail 3600 IN A 212.113.133.235
newdev 3600 IN A 81.95.52.103
parrot 3600 IN A 81.95.52.43
penguin 3600 IN A 81.95.52.111
power 3600 IN A 81.95.52.111
projects 3600 IN A 81.95.52.43
puffin 3600 IN A 81.95.52.103
redirects 3600 IN A 81.95.52.111
static 3600 IN A 81.95.52.111
stats 3600 IN A 81.95.52.111
tech 3600 IN A 81.95.52.111
totnes 3600 IN A 81.95.52.111
trac 3600 IN A 81.95.52.111
wagn 3600 IN A 81.95.52.111
wiki 3600 IN A 81.95.52.111
www 3600 IN A 81.95.52.103
www.penguin 3600 IN A 81.95.52.111
www.projects 3600 IN A 81.95.52.43
www.totnes 3600 IN A 81.95.52.111
www.wiki 3600 IN A 81.95.52.111
@ 3600 IN MX 5 alt1.aspmx.l.google.com.
@ 3600 IN MX 5 alt2.aspmx.l.google.com.
@ 3600 IN MX 1 aspmx.l.google.com.
@ 3600 IN MX 10 aspmx2.googlemail.com.
@ 3600 IN MX 10 aspmx3.googlemail.com.
tech 10800 IN MX 10 mx.webarch.net.
&lt;/pre&gt;&lt;p&gt;
It should update soon...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>