Difference between revisions of "Wormmart administration"

From WormBaseWiki
Jump to navigationJump to search
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Overview =
 
= Overview =
  
WormMart is WormBase's implementation of the [http://www,biomart.org BioMart] data warehouse.  
+
WormMart is WormBase's implementation of the [http://www,biomart.org BioMart] data warehouse.
 +
 
 +
[http://www.biomart.org/user-docs.pdf Official BioMart Documentation]
  
 
= Basic Server Configuration =
 
= Basic Server Configuration =
Line 39: Line 41:
 
  // Curl
 
  // Curl
 
  $ sudo apt-get install curl
 
  $ sudo apt-get install curl
 +
 +
//CVS
 +
$ sudo apt-get install cvs
 +
 +
//Java
 +
$ sudo apt-get install sun-java5-jre
  
 
== Install Perl 5.10.1 or greater ==
 
== Install Perl 5.10.1 or greater ==
Line 59: Line 67:
 
   // Or, to install in a local path:
 
   // Or, to install in a local path:
 
  bash> ./Configure -des -Dprefix=$HOME/website/perl/5.10.1
 
  bash> ./Configure -des -Dprefix=$HOME/website/perl/5.10.1
 +
  // if mod_perl doesn't work properly, I had to install like this:
 +
bash> CFLAGS='-m64 -mtune=nocona' ./Configure -des -A ccflags=-fPIC
 
  bash> make
 
  bash> make
 
  bash> make test
 
  bash> make test
Line 87: Line 97:
 
  Listen 8080
 
  Listen 8080
  
Enable virtual hosts by uncommenting out the following line:
 
  
#Include conf/extra/httpd_hosts.conf
 
  
Enable FastCGI module (installed later)     
+
== Install mod_perl ==
  LoadModule fastcgi_module modules/mod_fastcgi.so
 
  
Add FastCGI config from GBrowse (see the GBrowse section below for details)Note that we tweak the Location Aliases to place the fast CGI-enabled GBrowse under /db/gb2.
+
cd ~/src
 +
wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz
 +
tar zxvf mod_perl-2.0-current.tar.gz
 +
  cd mod_perl-2.0.4
 +
perl Makefile.PL \
 +
    PREFIX=/usr/local/apache2 \
 +
    MP_APXS=/usr/local/apache2/bin/apxs
 +
Add to httpd.conf:
 +
LoadModule perl_module modules/mod_perl.so
 +
Then,
 +
sudo make
 +
sudo make install
  
<pre>
+
== Downloading martj ==
<IfModule mod_fcgid.c>
 
  Alias /db/gb2 "/usr/local/wormbase/gbrowse-current/cgi/gb2"
 
  <Location /db/gb2>
 
    SetHandler  fcgid-script
 
    Options      ExecCGI
 
  </Location>
 
  DefaultInitEnv GBROWSE_CONF /usr/local/wormbase/gbrowse-current/conf
 
  DefaultInitEnv PERL5LIB /usr/local/wormbase/extlib/lib/perl5/x86_64-linux-gnu-thread-multig:/usr/local/wormbase/extlib/lib/perl5:/usr/local/wormbase/gbrowse-current/lib/perl5:/usr/local/wormbase/gbrowse-support-files/lib:/usr/local/wormbase/gbrowse-support-files/lib/Bio:/usr/local/wormbase/gbrowse-support-files/lib/Bio/Graphics:/usr/local/wormbase/gbrowse-support-files/lib/Bio/Graphics/Glyph
 
</IfModule>
 
  
<IfModule mod_fastcgi.c>
+
Download:
  Alias /db/gb2 "/usr/local/wormbase/gbrowse-current/cgi/gb2"
+
ftp://anonymous@ftp.ebi.ac.uk/pub/software/biomart/martj_current/martj-bin.tgz
  <Location /db/gb2>
+
tar -zxvf martj-bin.tgz
    SetHandler  fastcgi-script
 
    Options      ExecCGI
 
  </Location>
 
  FastCgiConfig -initial-env PERL5LIB=/usr/local/wormbase/extlib/lib/perl5/x86_64-linux-gnu-thread-multig:/usr/local/wormbase/extlib/lib/perl5:/usr/local/wormbase/gbrowse-current/lib/perl5:/usr/local/wormbase/gbrowse-support-files/lib:/usr/local/wormbase/gbrowse-support-files/lib/Bio:/usr/local/wormbase/gbrowse-support-files/lib/Bio/Graphics:/usr/local/wormbase/gbrowse-support-files/lib/Bio/Graphics/Glyph
 
</IfModule>
 
</pre>
 
  
 +
== Downloading biomart-perl ==
 +
cd /usr/local/wormbase/biomart/
 +
cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart login
 +
The password you need to enter when prompted is CVSUSER.
 +
cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart \
 +
    co -r release-0_7 biomart-perl
  
Set up a virtual host on your port by editing /usr/local/apache2/conf/extras/httpd-vhosts.conf:
+
Note: you may not be able to connect to cvs from wb-blast.  If so, checkout code somewhere else and move over to /usr/local/womrbase/biomart/biomart-perl
  
<pre>
+
== Install Requisite Perl Modules ==
<VirtualHost *:80>
+
  cd /usr/local/wormbase/biomart/biomart-perl
    ErrorLog "/usr/local/wormbase/logs/error_log"
+
  perl bin/configure.pl -r conf/registryURLPointer.xml
    CustomLog "/usr/local/wormbase/logs/access_log" common
 
 
 
    # Everything for GBrowse2 will be served from under a url of either
 
    #      /db/gb2 or /gbrowse2
 
    # This makes proxying from CSHL more convenient.
 
    # Note that /db is historical and required for mapping the old site to the new
 
    Alias        "/gbrowse2/i/" "/usr/local/wormbase/gbrowse-current/tmp/images/"
 
 
 
    # NOTE: this MUST be different from the ScriptAlias.
 
    Alias        "/gbrowse2"    "/usr/local/wormbase/gbrowse-current/html"
 
    ScriptAlias "/db/gb2"      "/usr/local/wormbase/gbrowse-current/cgi/gb2"
 
 
 
    # Support files: the wormbase css file for gbrowse, banner image, etc
 
    Alias      "/gb2-support/    "/usr/local/wormbase/gbrowse-support-files/"
 
 
 
  <Directory "/usr/local/wormbase/gbrowse-support-files">
 
      Options -Indexes -MultiViews +FollowSymLinks
 
      Order allow,deny
 
      Allow from all
 
  </Directory>
 
 
 
  # The temporary GBrowse directory
 
  <Directory "/usr/local/wormbase/gbrowse-current/tmp">
 
      Allow from all
 
  </Directory>
 
 
 
  <Directory "/usr/local/wormbase/gbrowse-current/html">
 
      Options -Indexes -MultiViews +FollowSymLinks
 
      Order allow,deny                                             
 
      Allow from all
 
  </Directory>
 
 
 
  <Directory "/usr/local/wormbase/gbrowse-current/cgi/gb2">
 
      SetEnv PERL5LIB "/usr/local/wormbase/extlib/lib/perl5/x86_64-linux-gnu-thread-multi:/usr/local/wormbase/extlib/lib/perl5:/usr/local/wormbase/gbrowse-current/lib/perl5"
 
      SetEnv GBROWSE_CONF  "/usr/local/wormbase/gbrowse-current/conf"
 
  </Directory>
 
  </VirtualHost>
 
</pre>
 
 
 
=== Set up httpd to run under inet.d ===
 
 
 
''Only required for the master server.''
 
 
 
Remove /etc/init.d/apache2.  It just confuses things.
 
 
 
''Save the following file to /etc/init.d/httpd:''
 
  
 +
my output:
 
<pre>
 
<pre>
#!/bin/bash
+
Spreadsheet::WriteExcel
#
+
Template::Constants
# Startup script for the Apache Web Server
+
Log::Log4perl
#
+
Test::Exception
# chkconfig: - 85 15
+
Mail::Mailer
# description: Apache is a World Wide Web server.  It is used to serve \
+
DBI
#              HTML files and CGI.
+
Template::Plugin::Number::Format
# processname: httpd
+
XML::Parser
# pidfile: /usr/local/apache2/logs/httpd.pid
+
List::MoreUtils
# config: /usr/local/apache2/conf/httpd.conf
+
Exception::Class
 
+
CGI::Session::Driver::db_file
# Source function library.
+
LWP::UserAgent
. /etc/rc.d/init.d/functions
+
Spreadsheet::WriteExcel::Big
 
+
Number::Format
if [ -f /etc/sysconfig/httpd ]; then
+
CGI::Session
        . /etc/sysconfig/httpd
+
XML::DOM
fi
+
Template
 
+
OLE::Storage_Lite
# This will prevent initlog from swallowing up a pass-phrase prompt if
+
Readonly
# mod_ssl needs a pass-phrase from the user.
 
INITLOG_ARGS=""
 
 
 
# Path to the apachectl script, server binary, and short-form for messages.
 
apachectl=/usr/local/apache2/bin/apachectl
 
httpd=/usr/local/apache2/bin/httpd
 
pid=/usr/local/apache2/logs/httpd.pid
 
prog=httpd
 
RETVAL=0
 
 
 
# The semantics of these two functions differ from the way apachectl does
 
# things -- attempting to start while running is a failure, and shutdown
 
# when not running is also a failure.  So we just do it the way init scripts
 
# are expected to behave here.
 
start() {
 
        echo -n $"Starting $prog: "
 
        daemon $httpd $OPTIONS
 
        RETVAL=$?
 
        echo
 
        [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
 
        return $RETVAL
 
}
 
stop() {
 
        echo -n $"Stopping $prog: "
 
        killproc $httpd
 
        RETVAL=$?
 
        echo
 
        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd $pid
 
}
 
reload() {
 
        echo -n $"Reloading $prog: "
 
        killproc $httpd -HUP
 
        RETVAL=$?
 
        echo
 
}
 
 
 
# See how we were called.
 
case "$1" in
 
  start)
 
        start
 
        ;;
 
  stop)
 
        stop
 
        ;;
 
  status)
 
        status $httpd
 
        RETVAL=$?
 
        ;;
 
  restart)
 
        stop
 
        start
 
        ;;
 
  condrestart)
 
        if [ -f $pid ] ; then
 
                stop
 
                start
 
        fi
 
        ;;
 
  reload)
 
        reload
 
        ;;
 
  graceful|help|configtest|fullstatus)
 
        $apachectl $@
 
        RETVAL=$?
 
        ;;
 
  *)
 
        echo $"Usage: $prog {start|stop|restart|condrestart|reload|status"
 
echo $"|fullstatus|graceful|help|configtest}"
 
        exit 1
 
esac
 
 
 
exit $RETVAL
 
 
</pre>
 
</pre>
  
''Set which runlevels httpd will run under:''
+
install the perl modules you are instructed to by this script
 
+
  cpan -i Module::Name
  chkconfig --add httpd
 
chkconfig --level 2345 httpd on
 
chkconfig --list
 
 
 
== Install Fast CGI ==
 
 
 
$ cd /usr/local/wormbase/build
 
$ wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz
 
$ tar xzf mod_fastcgi.*.tar.gz
 
$ cd mod_fastcgi*
 
$ cp Makefile.AP2 Makefile
 
$ make
 
$ sudo make install
 
  
 
== MySQL ==
 
== MySQL ==
 
''Each node in the renderfarm has its own MySQL databases.''
 
  
 
=== Installation (>= 5.1) ===
 
=== Installation (>= 5.1) ===
Line 325: Line 202:
  
 
   c_elegans -> c_elegans_WS211
 
   c_elegans -> c_elegans_WS211
 +
 +
  
 
=== Privileges ===
 
=== Privileges ===
 +
$ mysql -uroot -p
 +
$ mysql> create use mart_admin
 +
$ mysql> grant select on `wormmart_%`.* to 'mart_admin'@'localhost'
 +
 +
== Berkeley DB ==
 +
 +
Install Berkeley DB
 +
 +
save to /usr/local/src
 +
http://www.oracle.com/technology/software/products/berkeley-db/htdocs/popup/db/5.0.21/db-targz.html
 +
 +
cd /usr/local/src/
 +
sudo gunzip < /path/to/berkleydb.tar.gz | sudo tar xvf -
 +
cd build_unix
 +
../dist/configure
 +
make
 +
make install
 +
cd ../..
 +
echo /usr/local/BerkeleyDB.3.2/lib >> /etc/ld.so.conf
 +
ldconfig
 +
 +
 +
Then install the following perl modules:
 +
DB_File
 +
XML::Simple
 +
DBD::mysql  <-- may have to install from source
 +
Apache2::PerlSections
 +
 +
== 2.4.3 Configuring ==
 +
=== 2.4.3.1 Configuring the BioMart Perl API ===
 +
 +
Configuration of the Perl API requires a single step. Change into the biomart-perl directory,
 +
then type:
 +
perl bin/configure.pl -r conf/registryURLPointer.xml
 +
where registryURLPointer.xml is the registry file you wish to use from the conf folder.
 +
The first question the configure script will ask is:
 +
Do you want to install in API only mode [y/n] [n]:
 +
Type y to install the API only.
 +
During configuration it may point out that required Perl modules are missing. If this happens, follow the steps detailed in the prerequisites section above to install these missing Perl modules.
 +
When it has completed successfully, you will see this final message:
 +
Looks good.... you are done.
 +
 +
=== 2.4.3.2 Configuring MartView ===
 +
 +
in conf/settings.conf
 +
 +
<pre>
 +
[httpdSettings]
 +
apacheBinary=/usr/local/apache2
 +
serverHost=localhost
 +
port=9002
 +
# to use proxying set the proxy port below (even if its 80) and set serverHost as your proxy host
 +
proxy=
 +
# if apxs or apxs2 is not in default directory where httpd lives, you may set this param to point to apxs/2
 +
apxs=
 +
location=biomart
 +
</pre>
  
''Be sure to grant privileges to both master and slave servers to the databases:''
+
== Reinstalling BioMart ==
  
$ mysql -u root -p -e 'grant select on c_elegans.* to nobody@localhost'
+
So, sometimes wormmart gets a redirect problem that you can fix by reinstalling!
$ mysql -u root -p -e 'grant select on c_elegans.* to nobody@render-slave-ip'
 
  
== Install Requisite Perl Modules ==
+
1. reinstall biomart-perl
 +
cd /usr/local/wormbase/biomart/
 +
cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart login
 +
The password you need to enter when prompted is CVSUSER.
 +
cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart \
 +
    co -r release-0_7 biomart-perl
  
''All libraries specific for GBrowse are maintained in a local shared directory.  This makes it easier and faster to upgrade GBrowse, but more difficult to test multiple versions simultaneouslyTo test a new version of GBrowse, place extlib inside of the gbrowse-current directory and modify the apache configuration and commands below as appropriate.''
+
Note: you may not be able to connect to cvs from wb-biomartIf so, checkout code somewhere else and move over to /usr/local/womrbase/biomart/biomart-perl
  
Install local::lib to make things easier:
+
2. copy over necessary files
 +
* conf/httpd.conf.bak
 +
* conf/templates/default
 +
* conf/settings.conf
  
  $ sudo perl -MCPAN -e 'CPAN::install(local::lib)'
+
3. Change the permissions for conf/templates/cached
$ cd /usr/local/wormbase/extlib
+
  $ sudo chmod 777 conf/templates/cached
  
To install modules to this path:
+
3. Make sure you kill all previous wormmart processes
  
$ perl -Mlocal::lib=.
+
4. Run the following from the biomart-perl directory:
  $ eval $(perl -Mlocal::lib=./)
+
  $ sudo perl bin/configure.pl -r conf/wormMartRegistry.xml --clean;
  $ sudo rm -rf ~/.cpan
+
  $ cp conf/httpd.conf.bak conf/httpd.conf;
  $ perl -MCPAN -e shell
+
  $ sudo /usr/local/apache2/bin/apachectl -d /path/to/biomart-perl -f conf/httpd.conf
cpan> install Bio::Perl        // may be necessary to install from source
 
cpan> install Bio::Graphics    // may be necessary to install from source
 

Latest revision as of 14:39, 4 November 2010

Overview

WormMart is WormBase's implementation of the BioMart data warehouse.

Official BioMart Documentation

Basic Server Configuration

Create groups

sudo addgroup wormbase
sudo addgroup biomart
# Add yourself to the groups
sudo usermod -a -G biomart, wormbase acabunoc

Create directories

Create a directory for GBrowse. For now, we're maintaining GBrowse on dedicated hardware completely distinct from the rest of the web application. This makes updates significantly easier, although it increases maintenance (ie boilerplate headers and footers are maintained in two places). We'll also keep gbrowse inside a wormbase/ directory should we wish to install other components on these servers at a later date.

$ sudo mkdir -p /usr/local/wormbase
$ sudo chgrp -R wormbase /usr/local/wormbase
$ sudo chmod 2775 /usr/local/wormbase

Install prerequisites (Debian)

// Update apt
$ sudo apt-get update
// Make tools
$ sudo apt-get install gcc make
// expat
$ sudo apt-get install expat libexpat1 libexpat1-dev
// GD support
$ sudo apt-get install libgd2-noxpm libgd2-noxpm-dev
// Graphviz, now apparently required by BioPerl
$ sudo apt-get install graphviz
// Curl
$ sudo apt-get install curl
//CVS
$ sudo apt-get install cvs
//Java
$ sudo apt-get install sun-java5-jre

Install Perl 5.10.1 or greater

You'll need Perl version 5.10.1 or greater.

Debian:

$ sudo apt-get install perl

NOTE: This version of Perl on Debian Lenny doesn't ship with perl.h. You won't be able to build mod_perl without it! You should probably build from source.

Building from source:

bash> cd ~/src
bash> curl -O http://www.cpan.org/src/perl-5.10.1.tar.gz
bash> cd ~/build
bash> tar xzf ../src/perl-5.10.1.tar.gz
bash> cd perl-5.10.1
bash> ./Configure -des
  // Or, to install in a local path:
bash> ./Configure -des -Dprefix=$HOME/website/perl/5.10.1
  // if mod_perl doesn't work properly, I had to install like this:
bash> CFLAGS='-m64 -mtune=nocona' ./Configure -des -A ccflags=-fPIC
bash> make
bash> make test
bash> sudo make install

Install Apache2

If you're running Debian, get rid of the installed apache. The default layout is just plain annoying.

$ sudo apt-get remove apache2
# Build httpd 2.2.15
cd ~/src
curl -O http://apache.raffsoftware.com/httpd/httpd-2.2.15.tar.gz
tar xzf httpd-2.2.15.tar.gz
cd httpd-2.2.15
./configure --enable-mods-shared=all
make
sudo make install

Apache Configuration

Edit the primary httpd.conf file (/usr/local/apache2/conf/httpd.conf) with the appropriate port, virtual host, and fcgi settings:

  • Set httpd to listen on your desired port. In the examples below, we assume port 8080.
# Edit "Listen 80" to read
Listen 8080


Install mod_perl

cd ~/src
wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz
tar zxvf mod_perl-2.0-current.tar.gz
cd mod_perl-2.0.4 
perl Makefile.PL \
    PREFIX=/usr/local/apache2 \
    MP_APXS=/usr/local/apache2/bin/apxs

Add to httpd.conf:

LoadModule perl_module modules/mod_perl.so

Then,

sudo make
sudo make install

Downloading martj

Download: ftp://anonymous@ftp.ebi.ac.uk/pub/software/biomart/martj_current/martj-bin.tgz

tar -zxvf martj-bin.tgz

Downloading biomart-perl

cd /usr/local/wormbase/biomart/
cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart login

The password you need to enter when prompted is CVSUSER.

cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart \
    co -r release-0_7 biomart-perl

Note: you may not be able to connect to cvs from wb-blast. If so, checkout code somewhere else and move over to /usr/local/womrbase/biomart/biomart-perl

Install Requisite Perl Modules

cd /usr/local/wormbase/biomart/biomart-perl
perl bin/configure.pl -r conf/registryURLPointer.xml

my output:

Spreadsheet::WriteExcel
Template::Constants
Log::Log4perl
Test::Exception
Mail::Mailer
DBI
Template::Plugin::Number::Format
XML::Parser
List::MoreUtils
Exception::Class
CGI::Session::Driver::db_file
LWP::UserAgent
Spreadsheet::WriteExcel::Big
Number::Format
CGI::Session
XML::DOM
Template
OLE::Storage_Lite
Readonly

install the perl modules you are instructed to by this script

cpan -i Module::Name

MySQL

Installation (>= 5.1)

We need a newer version of mysql than is available from the package manager. We'lll install the binary for x86_64.

$ sudo groupadd mysql
$ sudo useradd -g mysql mysql
$ sudo usermod -a -G mysql tharris
$ cd /usr/local
$ sudo gunzip < /path/to/mysql-VERSION-OS.tar.gz | sudo tar xvf -
$ sudo ln -s full-path-to-mysql-VERSION-OS mysql
$ cd mysql
$ sudo chown -R mysql .
$ sudo chgrp -R mysql .
$ sudo scripts/mysql_install_db --user=mysql  // may be necessary to remove /etc/mysql/my.cnf first
$ sudo chown -R root .
$ sudo chown -R mysql data
$ sudo chmod 2775 data // I like to be able to write to my datadir
// Copy the configuration file
$ sudo cp support_files/my-medium.cnf /etc/my.cnf
// It may be necessary to add the following to my.cnf if back end nodes
// don't have fully qualified domain names
skip-name-resolve
// Set up mysql to start up automatically
$ sudo cp support_files/mysql.server /etc/init.d/.
$ cd /etc/rc3.d
$ sudo ln -s ../init.d/mysql.server S90mysql
$ cd ../rc5.d
$ sudo ln -s ../init.d/mysql.server S90mysql
// Start it up and set a root password.
$ sudo /etc/init.d/mysql.server start
$ mysqladmin -u root password 'PASSWORD'

Databases

MySQL databases will be mirrored over directly as part of the production update process. They should be located in /usr/local/mysql/data. Symlinks, using the symbolic name of the database, point to the current version:

 c_elegans -> c_elegans_WS211


Privileges

$ mysql -uroot -p
$ mysql> create use mart_admin
$ mysql> grant select on `wormmart_%`.* to 'mart_admin'@'localhost'

Berkeley DB

Install Berkeley DB

save to /usr/local/src http://www.oracle.com/technology/software/products/berkeley-db/htdocs/popup/db/5.0.21/db-targz.html

cd /usr/local/src/
sudo gunzip < /path/to/berkleydb.tar.gz | sudo tar xvf -
cd build_unix
../dist/configure
make
make install
cd ../..
echo /usr/local/BerkeleyDB.3.2/lib >> /etc/ld.so.conf
ldconfig


Then install the following perl modules:

DB_File
XML::Simple
DBD::mysql  <-- may have to install from source
Apache2::PerlSections

2.4.3 Configuring

2.4.3.1 Configuring the BioMart Perl API

Configuration of the Perl API requires a single step. Change into the biomart-perl directory, then type:

perl bin/configure.pl -r conf/registryURLPointer.xml

where registryURLPointer.xml is the registry file you wish to use from the conf folder. The first question the configure script will ask is:

Do you want to install in API only mode [y/n] [n]:

Type y to install the API only. During configuration it may point out that required Perl modules are missing. If this happens, follow the steps detailed in the prerequisites section above to install these missing Perl modules. When it has completed successfully, you will see this final message:

Looks good.... you are done.

2.4.3.2 Configuring MartView

in conf/settings.conf

[httpdSettings]
apacheBinary=/usr/local/apache2
serverHost=localhost
port=9002
# to use proxying set the proxy port below (even if its 80) and set serverHost as your proxy host
proxy=
# if apxs or apxs2 is not in default directory where httpd lives, you may set this param to point to apxs/2
apxs=
location=biomart

Reinstalling BioMart

So, sometimes wormmart gets a redirect problem that you can fix by reinstalling!

1. reinstall biomart-perl

cd /usr/local/wormbase/biomart/
cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart login

The password you need to enter when prompted is CVSUSER.

cvs -d :pserver:cvsuser@cvs.sanger.ac.uk:/cvsroot/biomart \
    co -r release-0_7 biomart-perl

Note: you may not be able to connect to cvs from wb-biomart. If so, checkout code somewhere else and move over to /usr/local/womrbase/biomart/biomart-perl

2. copy over necessary files

  • conf/httpd.conf.bak
  • conf/templates/default
  • conf/settings.conf

3. Change the permissions for conf/templates/cached

$ sudo chmod 777 conf/templates/cached

3. Make sure you kill all previous wormmart processes

4. Run the following from the biomart-perl directory:

$ sudo perl bin/configure.pl -r conf/wormMartRegistry.xml --clean; 
$ cp conf/httpd.conf.bak conf/httpd.conf; 
$ sudo /usr/local/apache2/bin/apachectl -d /path/to/biomart-perl -f conf/httpd.conf