View unanswered posts | View active topics It is currently Fri Oct 20, 2017 1:23 am



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:
    Code:
    sudo su -

  • You will need to install two external software repositories in order to pull down some software dependencies using yum package manager
    Code:
    # Install the EPEL yum repository
    rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

    #Install the REMI yum repository
    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

    (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:
    Code:
    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 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html and then run:
    Code:
    rpm -Uvh jdk-7u*-linux-x64.rpm


  • Install your database and MySQL root user
    Code:
    service mysqld start
    #Execute and follow the instructions
    /usr/bin/mysql_secure_installation

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

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

    About 15 lines below this declaration, locate "AllowOverride None" and replace this with "AllowOverride All"
  • Restart both httpd and mysqld:
    Code:
    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
ben.greenwood@ands.org.au

Interested in ANDS software? Check out: http://researchdata.ands.org.au/developers


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

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:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.