This document describes how to install refbase.
This section describes how to install refbase using the install script (install.php) that comes with the refbase package. Alternative installation methods are described below. See the 'INSTALL' file that comes with the refbase package for latest information regarding the installation process.
Please make sure that your server meets the requirements.
Download and install scripts
Download the latest stable release version (or, alternatively, get the latest development version of refbase from the refbase SVN repository). Then, unpack the download archive (if necessary) and copy all refbase scripts to your server's web directory.
Additionally, you may want to download Bibutils and copy the binaries to an executable path. Bibutils provides additional import and export funtionality to refbase (e.g. support for Endnote & BibTeX). It is optional, but highly recommended.
Configure database settings
Please be sure to configure important database settings prior to installation. While you might be able to use the refbase package without modifying the default settings, we highly recommend not to use the default values.
Install refbase via install.php
Point your web browser to install.php, and fill out and submit the install form(*) to complete the installation process.
(*) In case you're curious, the install form looks like this.
Note that the install script currently requires a user with full access to the mysql database (more info below). I.e., if you're trying to install refbase on a shared host with limited MySQL access privileges, you may need to perform a manual installation instead.
Alternative installation methods
If you're experiencing problems with the web-based installation you can try a manual installation instead.
$ emerge refbase
$ urpmi refbase
then finish the installation by pointing your web browser to
Windows users can download the free and open source WOS Portable to have an Apache/MySQL/PHP stack (which can even be run from a USB stick). The refbase package can reportedly be downloaded from their premium site. Non-members can download the refbase WOS package from NUCAPT.
The raspberry pi installation is no different than other deployments on current debian-derived systems. However, MySQL has changed their syntax a bit and the install files with the released version need to be updated. These instructions use 2015-05-05-raspbian-wheezy.
- sudo -s
- aptitude install apache2 php5 libapache2-mod-php5
- aptitude install mysql-server mysql-client php5-mysql
- aptitude install bibutils
- cd /var/www
- wget http://prdownloads.sourceforge.net/refbase/refbase-0.9.6.tar.gz?download
- tar -xvzf refbase-0.9.6.tar.gz\?download
- cd refbase-0.9.6
The install files need to be updated:
- vi install_utf8.sql
Then use the standard install (visiting /refbase-0.9.6/install.php in a browser will auto-fill the MySQL admin username, path to MySQL, and path to bibutils; enter your password, change './install.sql' to './install_utf8.sql' and select utf8.
A list of possible problems and their solutions can be found in the Installation-Troubleshooting section.
Installation over an existing database
In the install form, you will find a cautionary note:
Note that, if there's already an existing database with the name specified in $databaseName, clicking the Install button will overwrite ALL data in that database!
Actually, this note is only true if you're installing into an existing refbase database. The refbase install.php script will NOT delete an existing database but will only overwrite those tables in the specifed database that have names identical to the ones used by refbase. refbase table names are specified in files initialize/db.inc.php & install.sql (or update.sql) and can be changed there to avoid any name conflicts with existing tables.
In other words, if the table names in your existing database don't conflict with the table names used by refbase (or if you rename the refbase table names in db.inc.php AND in install.sql prior to installation so that they don't conflict with existing table names), then you should be able to use install.php for installation of refbase into any existing database.
However, it is a very good idea to make a full backup of your existing database prior to installation. Also, it may be worth to first do some testing with a non-critical database copy.
Additional web-install requirements
In order to run the install.php script as described above, you will need a MySQL username with permission to modify the database named mysql which stores the MySQL user privilege information. This is since the refbase install script adds a dedicated MySQL user to the mysql database which will be used with your refbase application (more info).
Some shared hosts do not provide MySQL usernames with the required permissions, but instead provide alternate interfaces for MySQL username administration such as a web-based control center. If you face this restriction, you will need to perform a manual installation.