Skip to content

Instantly share code, notes, and snippets.

@tchalvak
Created February 11, 2012 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tchalvak/1796668 to your computer and use it in GitHub Desktop.
Save tchalvak/1796668 to your computer and use it in GitHub Desktop.
Install steps for SRA.
Install Steps
-------------
Download codeigniter (CodeIgniter_2.1.0 currently) zip, just google it.
Unzip codeigniter somewhere, and steal the contents of the /system/ folder within it. Copy everything in /system/*, and paste those folders into SRA's /system/ folder to form the running core of codeigniter for SRA.
(Only the /system/libraries/Zend folder need be retained)
Create Database:
createdb sra;
createlang plpgsql sra;
psql sra < schema/tank_auth_schema.sql
psql sra < schema/acls.sql
psql sra < schema/create.sql
optionally: create a dummy, insecure dev user for non-public development environments so that dummy password can be the one used in applications/config/database.php :
createuser -P -d -a -e dev
Modify configs files:
ln -s gitignore.dist .gitignore
cp htaccess.dist .htaccess
cp application/config/config.php.dist application/config/config.php
cp application/config/database.php.dist application/config/database.php
edit htaccess with your proper root url path
edit database settings in application/database.php to replace 'em with your own local settings
edit pathing settings in application/config.php to your local path. (pretty much just the base_url variable)
That should be it! Debug any issues you have, but these steps should get you most of the way there!
@splummer
Copy link

The Zend folder in system/libraries is the Zend ACL library, unmodified except for the base path variables.

@splummer
Copy link

Config files that may need touching:
index.php - $system_path and $application_folder
application/config/config.php - $config['base_url']
application/config/database.php - put in your database connection parameters

@tchalvak
Copy link
Author

@splummer This install doc might should be complete-ish at this point, it got me to a working system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment