Index: docs/user/registry_installation.html =================================================================== --- docs/user/registry_installation.html (revision 4609) +++ docs/user/registry_installation.html (revision 4610) @@ -195,105 +195,9 @@
As part of the Metacat setup, a property called - 'inst.cgi.dir' is set, which controls the location the perl - scripts will be installed into, with a default of - '/var/www/cgi-knb'. To install the registry and the account - manager to this folder we'll run ant:
---cd $METACAT -sudo ant install-registry -sudo ant insall-ldap --
A registry instance can support one or more skins. Skins - provide a mechanism for giving a custom look to your Metacat - installation, but require integration work to initially - create. For this example, we'll use the
nceas- skin provided with Metacat. First, we'll want to install the - skin: -
-sudo ant install-skin
-
-
-
- When prompted, type
nceas
.
- Metacat uses the 'application.tempDir' property from - metacat.properties to set a temporary - space to store uploaded files. If you'd like your registry to - allow file uploads, we'll need to make sure Apache can write - to it. The apache user varies from machine to machine, but - typically it will be either -
. - Once finding your appropriate apache - user, we'll want to change ownership of a few files, here - using the userwww-data
orapache
apache
:
-
-sudo chown apache /tmp/knb
-
-
-
- Each skin has a 'lastid' file, which controls which the - accession numbers metacat generates. As with the temporary - folder, we'll want the registry to be able to write to this - file, replacing the skin name with the skin you're planning - on using:
--- -sudo touch /var/www/org.ecoinformatics.knb/knb/style/skins/nceas/nceas.lastid -sudo chown apache /var/www/org.ecoinformatics.knb/knb/style/skins/nceas/nceas.lastid --
You'll need to have one lastid file for each skin your - site will support.
-Configure Apache to serve up the pages we've just - configured. In your httpd.conf or equivalent, add:
--- -ScriptAlias /cgi-bin/ "/var/www/cgi-knb/" -<Directory "/var/www/cgi-knb"> - AllowOverride None - Options ExecCGI - Order allow,deny - Allow from all -</Directory>` --
Then reload Apache:
---/etc/init.d/httpd reload --
Change owner and access permission of some credential files:
--- -cd /webapps/knb/style/skins/-find . -name "*.cfg" -exec chmod 600 {} \;-find . -name "*.cfg" -exec chown apache {} \;-
Note: "/webapps/knb" is subject to change base on your configuration.
-"apache" user is the one who runs httpd server.
- -Those commands will make the files which contain credentials are not accessible - from web browsers.
-Now visit the resulting URL:
-@@ -317,9 +221,9 @@ "http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html"> oracle website.http://localhost/cgi-bin/register-dataset.cgi?cfg=nceas +http://localhost/knb/cgi-bin/register-dataset.cgi?cfg=nceas
-rpm -i oracle-instantclient-basic-10.2.0.3-1.i386.rpm -rpm -i oracle-instantclient-devel-10.2.0.3-1.i386.rpm -rpm -i oracle-instantclient-sqlplus-10.2.0.3-1.i386.rpm +rpm -i oracle-instantclient-basic-10.2.0.3-1.i386.rpm +rpm -i oracle-instantclient-devel-10.2.0.3-1.i386.rpm +rpm -i oracle-instantclient-sqlplus-10.2.0.3-1.i386.rpm
-mkdir -p /usr/lib/oracle/10.2.0.3/network/admin/ && cd !$ -scp walbridge@knb.ecoinformatics.org:/usr/lib/oracle/10.1.0.4/network/admin/tnsnames.ora . +mkdir -p /usr/lib/oracle/10.2.0.3/network/admin/ && cd !$ +scp walbridge@knb.ecoinformatics.org:/usr/lib/oracle/10.1.0.4/network/admin/tnsnames.ora .