<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #112: phpMyAdmin HTTP Authentication</title>
    <link>https://trac.crin.org/trac/ticket/112</link>
    <description>&lt;p&gt;
There is a problem with the HTTP Authentication at &lt;a class="ext-link" href="https://phpmyadmin.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://phpmyadmin.crin.org/&lt;/a&gt;
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/112</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 25 Apr 2017 11:25:07 GMT</pubDate>
      <title>hours, status changed; resolution, totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/112#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/112#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Looking at the ticket that was used for the install, &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/8" title="task: Install phpMyAdmin on crin1 and enable encrypted connections from crin2 (closed: fixed)"&gt;ticket:8&lt;/a&gt;, and after deleting the &lt;tt&gt;crin&lt;/tt&gt; line from the &lt;tt&gt;/etc/phpmyadmin/.htpasswd&lt;/tt&gt; file the following was run:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/phpmyadmin
htdigest .htpasswd phpmyadmin crin
chown root:www-data .htpasswd
chmod 640 .htpasswd
&lt;/pre&gt;&lt;p&gt;
The HTTP Authentication password on file now works so closing this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>russell</dc:creator>

      <pubDate>Fri, 28 Apr 2017 10:27:16 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/112#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/112#comment:2</guid>
      <description>
        &lt;p&gt;
I'm getting through httpauth to phpmyadmin now, but I can't log in wtih the dev DB creds.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 28 Apr 2017 11:05:45 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/112#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/112#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;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.5&lt;/em&gt; to &lt;em&gt;1.0&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The problem was that the user was only allowed to access the database from the dev server and phpMyAdmin is running on the database server, these were the original commands to create the database and add the user:
&lt;/p&gt;
&lt;pre class="wiki"&gt;CREATE DATABASE dev;
GRANT ALL ON dev.* to 'dev'@'crin2' identified by 'XXX' REQUIRE SSL;
FLUSH PRIVILEGES;
&lt;/pre&gt;&lt;p&gt;
So in order to grant access from &lt;tt&gt;localhost&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;GRANT ALL ON dev.* to 'dev'@'localhost' identified by 'XXX';
FLUSH PRIVILEGES;
&lt;/pre&gt;&lt;p&gt;
I have done the same for the &lt;tt&gt;stage&lt;/tt&gt; and &lt;tt&gt;newprod&lt;/tt&gt; databases and tested access for all three.
&lt;/p&gt;
&lt;p&gt;
Looking at &lt;tt&gt;/var/www/stage/docroot/sites/default/settings.php&lt;/tt&gt; and &lt;tt&gt;/var/www/dev/docroot/sites/default/settings.php&lt;/tt&gt; &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin4"&gt;Crin4&lt;/a&gt; they both appear to be using the &lt;tt&gt;newprod&lt;/tt&gt; live database? Or an I missing something?
&lt;/p&gt;
&lt;p&gt;
At some point in the new week I'm going to need to update the certs that MySQL is using for SSL -- they are due to expire in early May.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>russell</dc:creator>

      <pubDate>Fri, 28 Apr 2017 15:04:24 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/112#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/112#comment:4</guid>
      <description>
        &lt;p&gt;
I believe that /var/www/stage/docroot/sites/default/settings.php is overridden by /var/www/stage/docroot/sites/dev.crin.org/settings.php in the case of dev. - so dev. is using the dev DB
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>russell</dc:creator>

      <pubDate>Fri, 28 Apr 2017 15:05:22 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/112#comment:5</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/112#comment:5</guid>
      <description>
        &lt;p&gt;
I'm in to the dev DB on phpmyadmin now, thank you. I'll go ahead now and truncate the big tables in there.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>