<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I had a difficult time getting CDash to work even though I am
      familiar with MySQL.</p>
    <p>Here are some suggestions for the documentation:</p>
    <p>1) CDash requires these Python modules (</p>
    <ul>
      <li> bcmath</li>
      <li> cURL (for site statistics)</li>
      <li> GD (for regression tests)</li>
      <li> mbstring</li>
      <li> pdo-mysql or pdo-postgresql</li>
      <li> XSL</li>
    </ul>
    ). One of the distros I found installed these modules by default. I
    did not know this until I ran php -m which displays what modules are
    installed.
    <p>2) For security reasons, MySQL no longer allows you to set the
      initial password from a regular (non-sudo) command line unless you
      ssh in.  Entering <br>
    </p>
    <pre class="code">sudo mysql -u root -p

</pre>
    <p>and then typing the root password works. You can also do it like
      this:</p>
    <pre class="code"><code><span class="pln"><code>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourPassword';</code></span></code></pre>
    <p>3) The easiest way to do the initial MySQL configuration is to
      edit (or create) /etc/mysql/my.cnf, add these lines,</p>
    <pre class="code">[mysqld]
sql-mode=ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION</pre>
    <p>and then restart MySQL.</p>
    <pre class="code">sudo mysqld restart </pre>
    <p>4) This
(<a class="moz-txt-link-freetext" href="https://askubuntu.com/questions/337874/change-apache-document-root-folder-to-secondary-hard-drive">https://askubuntu.com/questions/337874/change-apache-document-root-folder-to-secondary-hard-drive</a>)
      is an example of how to change DocumentRoot to point to the CDash
      directory. Remember to restart Apache2 afterwards:</p>
    <pre class="code"><code>sudo  /etc/init.d/apache2 restart</code></pre>
    <p>5) Finally, the docs say you should initially go to <br>
    </p>
    <pre class="code"><code><code><a class="moz-txt-link-freetext" href="http://localhost/install.php">http://localhost/users.php</a></code></code></pre>
    <p>This will not work until you first do the install from here:</p>
    <pre class="code"><code><code><a class="moz-txt-link-freetext" href="http://localhost/install.php">http://localhost/install.php</a>

</code></code></pre>
    <p><code><code>If you get a database connection refused while doing
          the install, your MySQL password is probably not set
          correctly.</code></code></p>
    <p><code><code></code></code></p>
    <p><code><code>Hope this helps,</code></code></p>
    <pre class="code"><code><code></code></code></pre>
    <code><code><br>
      </code></code>
    <pre class="moz-signature" cols="72">-- 
Donald [|]
A bad day in [] is better than a good day in {}.</pre>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>