<commit_before><?php $this->load->view('developer_header'); ?>
<section id="k-titler" class="fixed-head-marger" style="margin-top: 109px;"><!-- starts header -->
	<div class="container section-space30"><!-- starts container -->
		<div class="row"><!-- starts row -->
			<div class="col-lg-6 col-md-6 col-sm-12">
				<h2 class="k-page-title">Registry Software</h2>
			</div>
			<div class="col-lg-6 col-md-6 col-sm-12">
				<ol class="breadcrumb pull-right">
					<li><?php echo anchor('/', 'Home'); ?></li>
					<li class="active">Registry Software</li>
				</ol>
			</div>
		</div><!-- ends row -->
	</div><!-- ends container -->
</section>

<section id="k-work-ajax"><!-- starts single work project preview -->
	<div class="container section-space60"><!-- starts container -->
		<div class="row"><!-- starts row -->
			<div id="k-work-slider-wrap" class="col-lg-8 col-md-8 col-sm-12"><!-- starts slider wrap -->
				<div id="carousel-work" class="carousel slide"><!-- starts carousel -->
				
					<!-- Indicators -->
					<ol class="carousel-indicators">
						<li data-target="#carousel-work" data-slide-to="0" class="active"></li>
						<li data-target="#carousel-work" data-slide-to="1"></li>
						<li data-target="#carousel-work" data-slide-to="2"></li>
						<li data-target="#carousel-work" data-slide-to="3"></li>
						<li data-target="#carousel-work" data-slide-to="4"></li>
					</ol>
				
					<!-- Wrapper for slides -->
					<div class="carousel-inner">
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/portal_preview.png" alt="Image slide 5">
						</div>
						<div class="item active">
							<img src="http://services.ands.org.au/documentation/img/data_source_admin.png" alt="Image slide 4">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/maintenance_dashboard.png" alt="Image slide 3">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/roles_mgmt.png" alt="Image slide 2">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/metadata_workflows.png" alt="Image slide 1">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/cms_editor.png" alt="Image slide 1">
						</div>
					</div>
				
					<!-- Controls -->
					<a class="left carousel-control" href="#carousel-work" data-slide="prev"></a>
					<a class="right carousel-control" href="#carousel-work" data-slide="next"></a>
					
				</div><!-- ends carousel -->

			</div><!-- ends slider wrap -->
			
			<div id="k-work-text" class="col-lg-4 col-md-4 col-sm-12 text-right"><!-- starts work preview -->
				<h3 class="k-fancy-title">ANDS Registry Core <i class="icon-github awesome32"></i></h3><!-- title -->
				<p class="text-left"><!-- description -->
					The Registry Core PHP codebase includes a metadata registry, front-end data portal and access management system. 
					The Registry Core is <a href="https://github.com/au-research/ANDS-Registry-Core/tree/master" target="_blank">open source</a> and easy to install (see below).
				</p>
				<h3 class="k-fancy-title">Easy 4 steps Installation</h3><!-- title -->
				<ol class="anchor_links text-left">
					<li class="cat-item"><a href="#step1">Download the latest version</a></li>
					<li class="cat-item"><a href="#step2">Setup the database</a></li>
					<li class="cat-item"><a href="#step3">Download and configure the search indexer</a></li>
					<li class="cat-item"><a href="#step4">Update the registry config</a></li>
				</ol>
			</div>
		</div>
	</div>
</section>

<section id="k-content">
	<div class="container">
		<div class="row">
			<div id="main" class="col-lg-12 col-md-12 col-sm-12">
				<h2 class="k-fancy-title">Software Installation</h2>
				<div class="alert alert-danger">Server Requirements: Apache HTTP server, MySQL, PHP 5, Java 1.7 <small>(<a href="http://community.ands.org.au/viewtopic.php?f=211&t=3171" target="_blank">Setup Guide</a>)</small></div>

				<button type="button" class="btn btn-primary" id="step1">Step 1 - Download the latest version</button>
				<p></p>
				<ul>
					<li>Download the <a href="https://github.com/au-research/ANDS-Registry-Core/archive/master.zip" target="_blank">latest ANDS-Registry-Core</a> and extract to your web server:
						<pre class="pre-small">
cd /var/www/html/
wget <green>https://github.com/au-research/ANDS-Registry-Core/archive/master.zip</green>
unzip master.zip
# you may also wish to rename the directory extracted into:
mv ANDS-Registry-Core-master <blue>myrepo</blue></pre>
					</li>
				</ul>

				<br/>

				<button type="button" class="btn btn-success" id="step2">Step 2 - Setup the database</button>
				<p></p>
				<ul>
					<li>Having installed a MySQL server, setup new databases and initialise the tables:
						<pre class="pre-small">
mysql -u root -p                         # log into mysql server
mysql> CREATE DATABASE dbs_roles         # create databases
mysql> CREATE DATABASE dbs_registry</pre></li>
<li>If required, create a web user account and give it access:
<pre class="pre-small">
mysql> CREATE USER 'webuser' IDENTIFIED BY '&lt;<blue>yourpassword</blue>&gt;';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON dbs_roles TO 'webuser';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON dbs_registry TO 'webuser';
mysql> \q</pre></li>
<li>Import the table structure:<pre class="pre-small">
mysql -u root -p dbs_registry &lt; <blue>myrepo</blue><green>/etc/db/mysql/dbs_registry_r11_full.sql</green>
mysql -u root -p dbs_roles &lt; <blue>myrepo</blue><green>/etc/db/mysql/dbs_roles_r11_full.sql</green>
</pre>

					</li>
				</ul>
				<br/>

				<button type="button" class="btn btn-warning" id="step3">Step 3 - Download and configure the search indexer</button>
				<p></p>
				<ul>
					<li>Download SOLR 4.5.0 (<a href="http://mirror.mel.bkb.net.au/pub/apache/lucene/solr/4.5.0/solr-4.5.0.zip" target="_blank">solr-4.5.0.zip</a>) and run it using Jetty:
						<pre class="pre-small">
wget <green>http://mirror.mel.bkb.net.au/pub/apache/lucene/solr/4.5.0/solr-4.5.0.zip</green>
unzip solr-4.5.0.zip
cd solr-4.5.0/example/</pre></li>
<li>Copy the SOLR schema file and start SOLR:<pre class="pre-small">
cp solrschema_r10.xml <blue>path/to/solr/</blue>collection1/conf/schema.xml
java -Dsolr.solr.home=<blue>path/to/solr/</blue> -Djetty.port=8080 -jar start.jar &amp;</pre>
					</li>
					<li><small>Note: you can also launch SOLR as a Tomcat application (recommended for production use)</small></li>
				</ul>
				<br/>

			<button type="button" class="btn btn-info" id="step4">Step 4 - Update the registry config</button>
			<p></p>
			<ul>
				<li>Update your global configuration file:
					<pre class="pre-small">
cp <blue>myrepo</blue>/global_config.sample <blue>myrepo</blue>/global_config.php
# open it with your favourite editor and update Section 1:
// Details of your database server
$eDBCONF['default']['password'] = '<blue><PASSWORD>;</blue>';

// The Server Base URL is the URL via which users access the software installation
$ENV['default_base_url'] = "<blue>http://yourwebsite.com/myrepo/</blue>"; #N.B. include trailing slash!

// The SOLR URL is the URL of the search index core
$ENV['solr_url'] = "<blue>http://yourwebsite.com:8080/solr/</blue>";</pre></li>

<li>Configure the web server .htaccess file:<small><br/>Note: this may require <code>AllowOverride All</code> in your web server configuration</small><pre class="pre-small">
cp <blue>myrepo</blue>/htaccess.sample <blue>myrepo</blue>/.htaccess
# open it with your favourite editor and update:
RewriteBase /<code><blue>myrepo/</blue></code></pre>
				</li>
			</ul>

			<p><br/></p>
			<blockquote>You're done! Visit your new registry installation at:<br/><code><green>http://yourwebsite.com/myrepo/registry/</green></code></blockquote>
			</div>

			<h2 class="k-fancy-title">Useful Links</h2>
			<div id="k-sidebar-splitter" class="clearfix section-space60"><span></span></div>				
							<ul class="anchor_links">
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3191&sid=e170cbdd52fa7fe98767236c9d17dbc4" target="_blank">ANDS-CONTRIB</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3201&sid=e170cbdd52fa7fe98767236c9d17dbc4" target="_blank">Harvester</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3211&sid=e170cbdd52fa7fe98767236c9d17dbc4" target="_blank">Setting up Topics</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3181&sid=5e6dce383ad3be135b5ebc3e89aabcc1" target="_blank">Setting up Spotlight CMS</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3221&sid=5e6dce383ad3be135b5ebc3e89aabcc1" target="_blank">Updating Dashboard</a></li>
								<li class="cat-item"><a href="http://researchdata.ands.org.au/home/disclaimer" target="_blank">Usage Disclaimer</a></li>
							</ul>
						<div class="clearfix">
							<div class="alert alert-warning">
						  <b>Need help?</b> <br/>
						  Visit the <?=anchor($this->config->item('developer_community_portal'),'Community Support Forum');?>
						</div>
					</div>
		</div>
	</div>
	 
</section>

<?php $this->load->view('developer_footer'); ?><commit_msg>1st slide active on registry index<commit_after><?php $this->load->view('developer_header'); ?>
<section id="k-titler" class="fixed-head-marger" style="margin-top: 109px;"><!-- starts header -->
	<div class="container section-space30"><!-- starts container -->
		<div class="row"><!-- starts row -->
			<div class="col-lg-6 col-md-6 col-sm-12">
				<h2 class="k-page-title">Registry Software</h2>
			</div>
			<div class="col-lg-6 col-md-6 col-sm-12">
				<ol class="breadcrumb pull-right">
					<li><?php echo anchor('/', 'Home'); ?></li>
					<li class="active">Registry Software</li>
				</ol>
			</div>
		</div><!-- ends row -->
	</div><!-- ends container -->
</section>

<section id="k-work-ajax"><!-- starts single work project preview -->
	<div class="container section-space60"><!-- starts container -->
		<div class="row"><!-- starts row -->
			<div id="k-work-slider-wrap" class="col-lg-8 col-md-8 col-sm-12"><!-- starts slider wrap -->
				<div id="carousel-work" class="carousel slide"><!-- starts carousel -->
				
					<!-- Indicators -->
					<ol class="carousel-indicators">
						<li data-target="#carousel-work" data-slide-to="0" class="active"></li>
						<li data-target="#carousel-work" data-slide-to="1"></li>
						<li data-target="#carousel-work" data-slide-to="2"></li>
						<li data-target="#carousel-work" data-slide-to="3"></li>
						<li data-target="#carousel-work" data-slide-to="4"></li>
					</ol>
				
					<!-- Wrapper for slides -->
					<div class="carousel-inner">
						<div class="item active">
							<img src="http://services.ands.org.au/documentation/img/portal_preview.png" alt="Image slide 5">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/data_source_admin.png" alt="Image slide 4">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/maintenance_dashboard.png" alt="Image slide 3">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/roles_mgmt.png" alt="Image slide 2">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/metadata_workflows.png" alt="Image slide 1">
						</div>
						<div class="item">
							<img src="http://services.ands.org.au/documentation/img/cms_editor.png" alt="Image slide 1">
						</div>
					</div>
				
					<!-- Controls -->
					<a class="left carousel-control" href="#carousel-work" data-slide="prev"></a>
					<a class="right carousel-control" href="#carousel-work" data-slide="next"></a>
					
				</div><!-- ends carousel -->

			</div><!-- ends slider wrap -->
			
			<div id="k-work-text" class="col-lg-4 col-md-4 col-sm-12 text-right"><!-- starts work preview -->
				<h3 class="k-fancy-title">ANDS Registry Core <i class="icon-github awesome32"></i></h3><!-- title -->
				<p class="text-left"><!-- description -->
					The Registry Core PHP codebase includes a metadata registry, front-end data portal and access management system. 
					The Registry Core is <a href="https://github.com/au-research/ANDS-Registry-Core/tree/master" target="_blank">open source</a> and easy to install (see below).
				</p>
				<h3 class="k-fancy-title">Easy 4 steps Installation</h3><!-- title -->
				<ol class="anchor_links text-left">
					<li class="cat-item"><a href="#step1">Download the latest version</a></li>
					<li class="cat-item"><a href="#step2">Setup the database</a></li>
					<li class="cat-item"><a href="#step3">Download and configure the search indexer</a></li>
					<li class="cat-item"><a href="#step4">Update the registry config</a></li>
				</ol>
			</div>
		</div>
	</div>
</section>

<section id="k-content">
	<div class="container">
		<div class="row">
			<div id="main" class="col-lg-12 col-md-12 col-sm-12">
				<h2 class="k-fancy-title">Software Installation</h2>
				<div class="alert alert-danger">Server Requirements: Apache HTTP server, MySQL, PHP 5, Java 1.7 <small>(<a href="http://community.ands.org.au/viewtopic.php?f=211&t=3171" target="_blank">Setup Guide</a>)</small></div>

				<button type="button" class="btn btn-primary" id="step1">Step 1 - Download the latest version</button>
				<p></p>
				<ul>
					<li>Download the <a href="https://github.com/au-research/ANDS-Registry-Core/archive/master.zip" target="_blank">latest ANDS-Registry-Core</a> and extract to your web server:
						<pre class="pre-small">
cd /var/www/html/
wget <green>https://github.com/au-research/ANDS-Registry-Core/archive/master.zip</green>
unzip master.zip
# you may also wish to rename the directory extracted into:
mv ANDS-Registry-Core-master <blue>myrepo</blue></pre>
					</li>
				</ul>

				<br/>

				<button type="button" class="btn btn-success" id="step2">Step 2 - Setup the database</button>
				<p></p>
				<ul>
					<li>Having installed a MySQL server, setup new databases and initialise the tables:
						<pre class="pre-small">
mysql -u root -p                         # log into mysql server
mysql> CREATE DATABASE dbs_roles         # create databases
mysql> CREATE DATABASE dbs_registry</pre></li>
<li>If required, create a web user account and give it access:
<pre class="pre-small">
mysql> CREATE USER 'webuser' IDENTIFIED BY '&lt;<blue>yourpassword</blue>&gt;';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON dbs_roles TO 'webuser';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON dbs_registry TO 'webuser';
mysql> \q</pre></li>
<li>Import the table structure:<pre class="pre-small">
mysql -u root -p dbs_registry &lt; <blue>myrepo</blue><green>/etc/db/mysql/dbs_registry_r11_full.sql</green>
mysql -u root -p dbs_roles &lt; <blue>myrepo</blue><green>/etc/db/mysql/dbs_roles_r11_full.sql</green>
</pre>

					</li>
				</ul>
				<br/>

				<button type="button" class="btn btn-warning" id="step3">Step 3 - Download and configure the search indexer</button>
				<p></p>
				<ul>
					<li>Download SOLR 4.5.0 (<a href="http://mirror.mel.bkb.net.au/pub/apache/lucene/solr/4.5.0/solr-4.5.0.zip" target="_blank">solr-4.5.0.zip</a>) and run it using Jetty:
						<pre class="pre-small">
wget <green>http://mirror.mel.bkb.net.au/pub/apache/lucene/solr/4.5.0/solr-4.5.0.zip</green>
unzip solr-4.5.0.zip
cd solr-4.5.0/example/</pre></li>
<li>Copy the SOLR schema file and start SOLR:<pre class="pre-small">
cp solrschema_r10.xml <blue>path/to/solr/</blue>collection1/conf/schema.xml
java -Dsolr.solr.home=<blue>path/to/solr/</blue> -Djetty.port=8080 -jar start.jar &amp;</pre>
					</li>
					<li><small>Note: you can also launch SOLR as a Tomcat application (recommended for production use)</small></li>
				</ul>
				<br/>

			<button type="button" class="btn btn-info" id="step4">Step 4 - Update the registry config</button>
			<p></p>
			<ul>
				<li>Update your global configuration file:
					<pre class="pre-small">
cp <blue>myrepo</blue>/global_config.sample <blue>myrepo</blue>/global_config.php
# open it with your favourite editor and update Section 1:
// Details of your database server
$eDBCONF['default']['password'] = '<blue>&lt;yourpassword&gt;</blue>';

// The Server Base URL is the URL via which users access the software installation
$ENV['default_base_url'] = "<blue>http://yourwebsite.com/myrepo/</blue>"; #N.B. include trailing slash!

// The SOLR URL is the URL of the search index core
$ENV['solr_url'] = "<blue>http://yourwebsite.com:8080/solr/</blue>";</pre></li>

<li>Configure the web server .htaccess file:<small><br/>Note: this may require <code>AllowOverride All</code> in your web server configuration</small><pre class="pre-small">
cp <blue>myrepo</blue>/htaccess.sample <blue>myrepo</blue>/.htaccess
# open it with your favourite editor and update:
RewriteBase /<code><blue>myrepo/</blue></code></pre>
				</li>
			</ul>

			<p><br/></p>
			<blockquote>You're done! Visit your new registry installation at:<br/><code><green>http://yourwebsite.com/myrepo/registry/</green></code></blockquote>
			</div>

			<h2 class="k-fancy-title">Useful Links</h2>
			<div id="k-sidebar-splitter" class="clearfix section-space60"><span></span></div>				
							<ul class="anchor_links">
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3191&sid=e170cbdd52fa7fe98767236c9d17dbc4" target="_blank">ANDS-CONTRIB</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3201&sid=e170cbdd52fa7fe98767236c9d17dbc4" target="_blank">Harvester</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3211&sid=e170cbdd52fa7fe98767236c9d17dbc4" target="_blank">Setting up Topics</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3181&sid=5e6dce383ad3be135b5ebc3e89aabcc1" target="_blank">Setting up Spotlight CMS</a></li>
								<li class="cat-item"><a href="http://community.ands.org.au/viewtopic.php?f=211&t=3221&sid=5e6dce383ad3be135b5ebc3e89aabcc1" target="_blank">Updating Dashboard</a></li>
								<li class="cat-item"><a href="http://researchdata.ands.org.au/home/disclaimer" target="_blank">Usage Disclaimer</a></li>
							</ul>
						<div class="clearfix">
							<div class="alert alert-warning">
						  <b>Need help?</b> <br/>
						  Visit the <?=anchor($this->config->item('developer_community_portal'),'Community Support Forum');?>
						</div>
					</div>
		</div>
	</div>
	 
</section>

<?php $this->load->view('developer_footer'); ?>
{'fraction_non_alphanumeric': 0.19315649867374005, 'fraction_numerical': 0.024880636604774537, 'mean_word_length': 3.710394802598701, 'pattern_counts': {'":': 0, '<': 588, '<?xml version=': 0, '>': 612, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3504197', 'n_tokens_mistral': 7788, 'n_tokens_neox': 6467, 'n_words': 1389}