Skip to content

Commit

Permalink
Minor docs formatting update
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Mar 2, 2015
1 parent f297961 commit 9463ab0
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions documentation/labrador_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ Users do not need any software to use Labrador other than a web browser and an i
2.2 Configuration
-----------------

Installation of Labrador is as simple as downloading the installation bundle from the project web site and then extracting it into the location you wish to install the program. On a unix system you would do this using: `tar -xzvf labrador_vXX.tar.gz`
Installation of Labrador is as simple as downloading the installation bundle from the project web site and then extracting it into the location you wish to install the program. On a unix system you would do this using:

tar -xzvf labrador_vXX.tar.gz


On a windows system you would use a decompression utility such as 7zip or WinZip to unpack the files from the installation bundle

Expand All @@ -54,21 +57,28 @@ To run Labrador you need a working web server. It is recommended that Apache is

### 2.2.2 Database Creation

Before starting the system you need to create the database which is going to be used by Labrador. The Labrador installation contains an SQL file which will set up and configure a database. The file is in the `conf` folder of the installation. If you are using a MySQL install on the same machine as your webserver and you're happy to use the default configuration, you can install the database using: `mysql -u root -p < labrador_database.sql`
Before starting the system you need to create the database which is going to be used by Labrador. The Labrador installation contains an SQL file which will set up and configure a database. The file is in the `conf` folder of the installation. If you are using a MySQL install on the same machine as your webserver and you're happy to use the default configuration, you can install the database using:

mysql -u root -p < labrador_database.sql


This script will create a database and a user, both called `labrador`. It will then populate the database with the empty table structure needed to run Labrador.

You will be prompted for the MySQL root password and the database will be created. You can substitute the root account for any other MySQL account with sufficient privileges to create a new database and add user permissions to it. Warning - running this file with an existing Labrador database will overwrite all previous data.

If you want to put the database on a different machine to the webserver, or you want to change the username used to connect to the database then you will need to edit the SQL file and change the GRANT statements at the bottom to use the username and machine you would prefer to use.
If you want to put the database on a different machine to the webserver, or you want to change the username used to connect to the database then you will need to edit the SQL file and change the `GRANT` statements at the bottom to use the username and machine you would prefer to use.

For example you could change the statement:

`GRANT ALL PRIVILEGES ON labrador.* TO 'labrador'@'localhost';`

GRANT ALL PRIVILEGES ON labrador.* TO 'labrador'@'localhost';


to

`GRANT ALL PRIVILEGES ON labrador.* TO 'mylocaluser'@'somemachine.example.com';`

GRANT ALL PRIVILEGES ON labrador.* TO 'mylocaluser'@'somemachine.example.com';



### 2.2.3 Webserver Configuration
Expand Down Expand Up @@ -139,7 +149,7 @@ The homepage of Labrador is designed for browsing projects. The main panel lists
---------------------
Once you've selected a project, you'll be taken to its page. Project pages always have a side navigation allowing you to view different aspects of the project.

All project pages share a header. This shows the project identifier and any project accession numbers. Under this the project status is shown, the names of people linked to the project, the bioinformatician assigned to process the data and the location of the project directory on the server.
All project pages share a header. This shows the project identifier and any project accession numbers. Under this the project status is shown, the names of people linked to the project, the bioinformatician assigned to process the data and the location of the project directory on the server.


### 3.3.1 Project Details
Expand Down Expand Up @@ -288,4 +298,4 @@ If you have any feedback or suggestions for Labrador, or find any bugs, please g

The Labrador Project page with the download of the latest version can be found at [http://www.bioinformatics.babraham.ac.uk/projects/index.html](http://www.bioinformatics.babraham.ac.uk/projects/index.html)

Labrador was written by [Phil Ewels](http://phil.ewels.co.uk/) whilst working as a postdoctoral research scientist for [Wolf Reik](http://www.babraham.ac.uk/our-research/epigenetics/reik/), at the [Babraham Institute](http://www.babraham.ac.uk/), Cambridge, UK. It was first released in January 2014.
Labrador was written by [Phil Ewels](http://phil.ewels.co.uk/) whilst working as a postdoctoral research scientist for [Wolf Reik](http://www.babraham.ac.uk/our-research/epigenetics/reik/), at the [Babraham Institute](http://www.babraham.ac.uk/), Cambridge, UK. It was first released in January 2014.

0 comments on commit 9463ab0

Please sign in to comment.