View unanswered posts | View active topics It is currently Sat May 25, 2019 7:52 am

All times are UTC + 10 hours [ DST ]

Reply to topic  [ 1 post ] 
[Guide] Server Environment Setup (Centos 6.4) 
Author Message
ANDS Staff
User avatar

Joined: Mon Jan 24, 2011 4:11 pm
Posts: 7
Setting up a server environment for ANDS-Registry-Core on CentOS 6.4

Note: this guide is illustrative only and is provided without any warranty of any kind. You are responsible for fully understanding the effects/implications of any command before you executed. This guide relies on root access to your system and instructions are provided as if the server were a brand new instance. Any data/software applications already installed may be affected whilst executing the commands in this guide.

Note: this is one of many ways that these software packages can be installed. If in doubt, contact your system administrator for assistance.

This guide assumes that you have disabled SELinux (guide) on your system or have configured it to "play nice" with Apache.

  • Firstly, login/sudo to the system's root user:
    sudo su -

  • You will need to install two external software repositories in order to pull down some software dependencies using yum package manager
    # Install the EPEL yum repository
    rpm -Uvh

    #Install the REMI yum repository
    rpm -Uvh

    (you may need to check the version and architecture if your system/OS version is different)
  • Now get yum to install our main software dependencies:
    yum install unzip wget httpd php php-xml php-mbstring php-pecl-imagick php-mysql mysql mysql-server

    This should install:
    - PHP 5.3 (php-5.3.3-23.el6_4.x86_64.rpm)
    - MySQL 5.1 (mysql-server-5.1.69-1.el6_4.x86_64.rpm)
    - Apache HTTPd 2.2 (httpd-2.2.15-29.el6.centos.x86_64.rpm)
    - a large number of other dependencies for these packages

  • You will need to install Java from Oracle in order for the SOLR indexer to run. Download the JDK RPM package from and then run:
    rpm -Uvh jdk-7u*-linux-x64.rpm

  • Install your database and MySQL root user
    service mysqld start
    #Execute and follow the instructions

  • Add the AllowOverride All declaration in your http.conf:
    # edit /etc/httpd/conf/httpd.conf with your favourite text editor
    nano /etc/httpd/conf/httpd.conf

    Find the <Directory declaration for your DocumentRoot:
    <Directory "/var/www/html">

    About 15 lines below this declaration, locate "AllowOverride None" and replace this with "AllowOverride All"
  • Restart both httpd and mysqld:
    service httpd restart
    service mysqld restart

You now have a server environment which is suitable to deploy ANDS Services onto! Simply follow the Registry Installation instructions on the ANDS website.

Ben Greenwood
Technical Lead, Services
Australian National Data Service

Interested in ANDS software? Check out:

Thu Oct 24, 2013 3:32 pm
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

All times are UTC + 10 hours [ DST ]

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.