Contents
This installation guide assumes you have setup and configured your centOS / RHEL server. For more information, refer to our Server Requirements & Setup section.
Download the latest version
cd /var/www/ git clone https://github.com/au-research/ANDS-Registry-Core.git core # Make sure the following directory have write access open chmod 777 -R /var/www/core/engine/logs chmod 777 -R /var/www/core/engine/cache chmod 777 -R /var/www/core/assets/uploads
Setup the database
Having installed a MySQL server, setup a new databases and initialise the tables
mysql -u root -p CREATE DATABASE dbs_roles; CREATE DATABASE dbs_registry; CREATE DATABASE dbs_portal;
If required, create a web user account and give it access
CREATE USER 'webuser' IDENTIFIED BY '<yourpassword>'; GRANT SELECT, INSERT, UPDATE, DELETE ON dbs_roles.* TO 'webuser'; GRANT SELECT, INSERT, UPDATE, DELETE ON dbs_registry.* TO 'webuser'; GRANT SELECT, INSERT, UPDATE, DELETE ON dbs_portal.* TO 'webuser'; FLUSH PRIVILEGES;
Import the table structure
mysql -u root -p dbs_roles < /var/www/core/etc/db/mysql/dbs_roles_r15_full.sql mysql -u root -p dbs_registry < /var/www/core/etc/db/mysql/dbs_registry_r15_full.sql mysql -u root -p dbs_portal < /var/www/core/etc/db/mysql/dbs_portal_r15_full.sql
Seed the database with the first role superuser|superuser
mysql -u root -p dbs_roles < /var/www/core/etc/db/mysql/dbs_roles_r15.seed.sql
Download and configure the search indexer
We will be using SOLR 4.10.4, ignore this section if you already have a SOLR instance running in another container (eg. Tomcat)
cd ~ wget http://archive.apache.org/dist/lucene/solr/4.10.4/solr-4.10.4.tgz tar -xzvf solr-4.10.4.tgz sudo cp -r solr-4.10.4 /usr/local/solr sudo cp /var/www/core/etc/misc/solrschema_r15.xml /usr/local/solr/example/solr/collection1/conf/schema.xml cd /usr/local/solr/ sudo bin/solr start -p 8983
SOLR should now be running in http://localhost:8983/solr
Update the registry configuration
Update the global_config.php
cp myrepo/global_config.sample myrepo/global_config.php
$eDBCONF['default']['password'] = '<yourpassword>'; $ENV['default_base_url'] = "http://yourwebsite.com/"; #include trailing slash! // The SOLR URL is the URL of the search index core $ENV['solr_url'] = "http://yourwebsite.com:8080/solr/";
Configure the web server .htaccess file
This may require AllowOverride All in your web server configuration
Configure the web server httpd.conf file
If you haven't done so already, change the DocumentRoot
in /etc/httpd/conf/httpd.conf
to /var/www/core
for consistency
Copy the sample .htaccess
file
cp myrepo/htaccess.sample myrepo/.htaccess
open it with your favourite editor and update:
RewriteBase /
to the base of your app relative to the root
Firewall / IPTables Port Forwarding
iptables -I RH-Firewall-1-INPUT 10 -p tcp -m tcp -s 130.56.111.64/26 --match multiport --dports 80,8080 -j ACCEPT -m comment --comment "HTTP and Tomcat Ports" iptables-save | tee /etc/sysconfig/iptables iptables -vnL service iptables res
Finish
superuser|superuser
This page has no comments.