CDash:Installation: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(Replaced content with " < CDash Main Page CDash is a [ LAMP] application, running on [ Apache] using [htt...")
Tag: Replaced
(43 intermediate revisions by 9 users not shown)
Line 2: Line 2:

CDash is a [ LAMP] application, running on [ Apache] using [ PHP] to access a [ MySQL] or [ PostgreSQL] database.
CDash is a [ LAMP] application, running on [ Apache] using [ PHP] to access a [ MySQL] or [ PostgreSQL] database.
== System Requirements ==
* Apache
* SQL database
** MySQL database (5.x and higher)
** PostgreSQL database (8.3 and higher)
* PHP (5.0 and higher)
* XSL module for PHP
* cURL module for PHP (for site statistics)
* GD module for PHP (for regression tests)

== Downloading CDash ==
Please visit [ our GitHub repository] for download links and installation instructions.
The '''current stable release of CDash is 1.2.1''' you can either download it as a zip archive
* []
* or from the [ Subversion] repository:
  svn co CDash
=== SVN Development version ===
CDash is available from the development [ Subversion] repository. Either extract the code into your web server tree, or another directory which will later be copied to the web server:
cd /srv/www/htdocs
svn co CDash
''Note: If this fails ensure any firewall allows outgoing access to port 8443.''
=== Previous versions of CDash ===
* '''1.0''': [] or svn co CDash
* '''0.8''': [] or svn co CDash
== Configuration ==
The system configuration is stored in <tt>.../CDash/config.php</tt>, edit this with your favorite ASCII editor.
=== SQL Database ===
If you are running the MySQL database on the same server as the Apache web server the defaults should work with no changes:
// Hostname of the MySQL database
$CDASH_DB_HOST = 'localhost';
// Login for MySQL database access
$CDASH_DB_LOGIN = 'root';
// Password for MySQL database access
// Name of the MySQL database
$CDASH_DB_NAME = 'cdash';
If you have just installed MySQL don't forget to start it:
rcmysql start
=== PostgreSQL Database ===
If you are running the PostGreSQL database read the previous MySQL section about configuring the database access.
You will also need to tell CDash to use PostgreSQL driver:
  // Database type (empty means mysql)
  $CDASH_DB_TYPE = 'pgsql';
Here is list of packages necessary on ubuntu
  sudo apt-get install php-pear
  sudo pecl install pdo
  sudo apt-get install php5-dev
  sudo pecl install pdo
  sudo pecl install pdo_pgsql
=== Email ===
You should probably edit the default email addresses:
// Default from email
=== LDAP ===
As of CDash 1.4, authentication to an LDAP database can be performed.
This requires the ldap module for php. The variables to define:
  $CDASH_USE_LDAP='1'; // turn this to 1 for LDAP authentication
  $CDASH_LDAP_HOSTNAME='localhost'; // hostname of the LDAP server
  $CDASH_LDAP_BASEDN='ou=people,dc=organization,dc=com'; // Base DN
  $CDASH_LDAP_PROTOCOL_VERSION='3'; // LDAP protocol version
Note that the administrator (first user to install CDash) is always stored in the database.
=== Backup directory ===
The backup/log directory by default is placed in <tt>.../CDash/backup</tt>, this must be made writable by the account that you run Apache under (typically wwwrun), you can move the directory via:
// Backup directory
=== Removing registration ===
The registration can be disabled globally from CDash.
// Doesn't provide registration links
=== Cookie expiration time ===
As of CDash 1.2 the login cookie time can be set in the config.php. The default is set to 1 hour.
// Duration of the cookie session (in seconds)
This allows the browser to remember the login/password of the user.
'''On a public computer it is recommended to always log out'''
=== Google Maps ===
CDash can use [ Google maps] to display the location of submission sites. CDash comes with Kitware's key code which won't work for your site's URL. Every site that uses Google maps requires its own [ Google maps key] which you should obtain from Google (it's free), use this style URL when applying for a key:
Paste your newly obtained key in place of Kitware's:
$CDASH_GOOGLE_MAP_API_KEY['localhost'] = 'paste key here';
If your submission machines use private IP addresses you can add default location information, e.g. for all machines in the 192.x.x.x network (use to obtain your location):
$CDASH_DEFAULT_IP_LOCATIONS[] = array("IP" => "192.*","latitude" => "42.6612","longitude" => "-73.7689");
Sometimes site location are misreported (e.g. the ISP's location is used), you can override these:
$CDASH_DEFAULT_IP_LOCATIONS[] = array("IP" => "76.65.240.*","latitude" => "43.667","longitude" => "-79.417");
You'll probably want to replace the defaults that are present.
Note: If you use the 192.x.x.x address range ensure you update the location information before submitting from any machines in this subnet, as the location is stored in the database on first submission from a site (but can be subsequently edited from the admin web pages).
=== Google Analytics ===
CDash can use [ Google analytics] to monitor site usage. CDash's main <tt>index.php</tt> contains a reference to a default Kitware Google analytics code:
When you configure each project you will have the opportunity to set a per-project Google analytics code.
See [[CDash:Administration#Adding_Google_Analytics | Adding GoogleAnalytics]] for more information.
== RSS directory ==
Ensure that the <tt>.../CDash/rss</tt> (and <tt>.../CDash/backup</tt>) directory is writable by the user account that Apache runs under (typically wwwrun).
== Apache ==
Ensure that the <tt>/srv/www/htdocs/CDash</tt> tree is accessible, you may have to add the following to your <tt>/etc/apache2/conf.d</tt> directory:
<Directory /srv/www/htdocs/CDash>
    Order allow,deny
    Allow from all
You may need to restart Apache:
rcapache2 restart
== Creating database ==
Access your website to start the install process:
The first step will confirm the host login and password for the database, the default admin account and password are also displayed, make a note of these as you'll need them later, as its easy to skip past this step missing them (you can always find them in <tt>.../CDash/sql/cdashdata.sql</tt>).
== See Also ==
[ The CDash web site's brief install instructions]

Latest revision as of 14:40, 25 September 2020

< CDash Main Page

CDash is a LAMP application, running on Apache using PHP to access a MySQL or PostgreSQL database.

Please visit our GitHub repository for download links and installation instructions.