Skip to content

Installation (manual)

sqarerootfury edited this page Sep 2, 2013 · 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

Step 2: Set rights on folders

Apply mode 770 via chmod 770 on /Storage/ /Snapshots/ /Temp/. It's recommended that the owner of the Redundancy directory is your webserver user. This step is very important. If the folders are not writable by php, the files will not get uploaded.

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