Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
{ 
  "responseHeader":{   
    "zkConnected":true,   
    "status":0,   
    "QTime":4,   
    "params":{     
      "q":"*:*",     
      "rows":"0"}}, 
  "response":{"numFound":114455167,"start":0,"maxScore":1.0,"docs":[]
  }}

3. If you are using CentOS 7, add the epel repository.

Code Block
languagetext
yum -y install epel-release

If you are using RHEL 7, use the following code to add the epel repository. Otherwise, continue to step 4.

Code Block
languagetext
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E '%{rhel}').noarch.rpm

4. Install the Install the appropriate repository for your operating system using the command listed in the Repository column below. If necessary, adjust the code to reflect the version you are using.

54.  Install Install CDWS and CDWI. Both packages will be installed in in /usr/share/perl5/vendor_perl. The Alexandria library will also be installed as part of these packages.

Code Block
languagetext
yum -y install perl-Alexandria-CDWS perl-Alexandria-CDWI

65. In order to run CDWS/CDWI as an Apache VHOST, copy the following template configuration files.

...

Code Block
languagetext
cp /usr/share/perl5/vendor_perl/Alexandria/CDWI/etc/claims-direct/alexandria-cdwi-apache.conf.template \
    /etc/httpd/conf.d/alexandria-cdwi-apache.conf

76. Ensure that the application configuration files are globally accessible.

...

Code Block
languagetext
cp /usr/share/perl5/vendor_perl/Alexandria/CDWI/etc/claims-direct/alexandria-cdwi.conf.template \
    /etc/alexandria-cdwi.conf

87. Change to the apache directory.

Code Block
cd /etc/httpd/conf.d

98. Using a text editor, set the ServerName in the alexandria-cdw(s|i)-apache.conf files. This should be a fully qualified domain name, not an IP address. It is also necessary to make sure the VirualHost parameter is set to reflect port 80.  See below: 

...

In alexandria-cdwi-apache.conf: ServerName cdwi.yourdomain.com
                                                    <VirtualHost *:80>

109.  In In the /etc directory, edit the alexandria-cdws.conf file. Using a text editor, find the parameter tags referenced in the pre-install worksheet. Make all necessary changes to the file using the information previously collected. For example:

Code Block
languagetext
<Model::Users>
  dsn dbi:Pg:dbname=users;host=xxx.xxx.xxx.xx;port=xxxx
  user USER
  username USERNAME
  password PASSWORD
</Model::Users>

1110. In order for the applications to function properly, credentials need to be stored where the application can retrieve them. CLAIMS Direct uses a simple "users" database preconfigured with an admin user (user: admin, password: PASSWORD). This database needs to be created either in a separate PostgreSQL instance, or together with the alexandria database. The following will create the user database on a PostgreSQL server:

Code Block
languagetext
cat /usr/share/perl5/vendor_perl/Alexandria/CDWS/etc/claims-direct/users.sql \
    | psql -Ualexandria -h<IP-ADDRESS-OF-POSTGRESQL> postgres

1211. Change the directory.

Code Block
languagetext
cd /etc/httpd/conf

1312. Depending on distribution, you may also need to adjust the permissions to the root root Directory in httpd.conf. Using a text editor, edit the main directory config as follows:

Code Block
languagetext
<Directory />
    AllowOverride none
    Require all granted
</Directory>

1413. Enable and restart httpd.

...