Skip to content

Installation (manual)

squarerootfury edited this page Jun 3, 2014 · 5 revisions

The installation of Redundancy follows 5 steps; it will takes about 5 minutes.

At the moment does Redundancy only have the possibility to get installed manually. A installer is planned. Note: Redundancy 1.9.9 will provide a easy to use installer. It will not be neccessary to import the database or configure the program manually to install.

Table of Contents

Installation steps

  • Clone the latest version
  • Set rights of folders
  • Configure
  • Install database tables
  • Enjoy :)!

Requirements

  • PHP 5
  • PHP GD modules
  • PHP zip modules
  • MySQL(i) or equivalent
  • Writeable directories (see step 2)
  • Client: JQuery support (if enabled)
  • Client: HTML5 support is recommended

Detailed install manual

Step 1: Clone the latest version

Unstable (very unrecommended for productive usage!) https://github.com/squarerootfury/redundancy/archive/unstable.zip

Stable (recommend if you want to use a productive environment): https://github.com/squarerootfury/redundancy/archive/stable.zip

  • Note: If you want to use the more comfortable way to prepare the installation, you can use the "setup.sh" script in the base directory. It replaces the steps 2 and 3.

Step 2: Set rights on folders

Check that the directories "Storage", "Temp" and "Snapshots" are writable by your PHP configuration, apply correct rights if needed. Also, The file "Includes/DataBase.inc.php" must be also writable by your PHP installation.

Step 3: Configure

Open Includes/DataBase.inc.php and insert your database credentials. Edit Redundancy.conf for your needs. You can read https://github.com/squarerootfury/redundancy/wiki/Configuration-values" to get the meaning of the config values.

Redundancy.conf

  • Copy "Redundancy_manual.conf" to "Redundancy.conf"
  • It is needed to edit "Program_Path" to your Redundancy's installation root path.
  • Replace Program_Storage_Dir with the name of the Storage dir
  • Do the same with Program_Temp_Dir and Program_Snapshots_Dir
  • Note: If you don't have HTTPS support on the sever, disable the Option Program_HTTPS_redirect.

DataBase.inc.php

Simply insert your database user credentials and your server and database informations. If you don't have an empty Database for Redundancy, remember the value for the database name.

Step 4: Install database1

Import the database dump on https://github.com/squarerootfury/redundancy/blob/unstable/Documents/Redundancy.sql to your database server. You can do it with phpMyAdmin or also you can import the database tables over the mysql shell:

mysql -u youruser -p -h localhost yourdatabasename < Redundancy.sql

  • Note: At the moment does Redundancy only supports MySQL/ MariaDB. A support for other database engines is planned.

Register user

Change Enable_Register to 1 to enable the user registration. Now you are able to create a new user account (after you've created your account, you should disable it again).

Set Administrative rights1

  • To give administrative permissions to your user, you have to execute following sql command:
Update databasename.Users SET Role=0 where User='yourusername';

Notes

1: This steps are only required until an installer is available. The installer will do this steps for you.

Clone this wiki locally