iCoworker

Project initial wiki page http://trac.htk.tlu.ee/icoworker

Requirements

  1. Apache with mod_php and mod_rewrite
  2. PHP version 5.4 or above (due to Facehook php-graph-sdk version 5)
  • Last used version of PHP: 7.1
  • Extensions: mysqli, gettext, json (possibly others that are part of the default installaton package)

Installation

  1. Move htaccess_example to .htaccess
  • Make sure to change <IfModule mod_php5.c> to <IfModule mod_php7.c> in case PHP verson 7 is used
  1. Create storage directories (OPTIONAL):
  • Datastore - data like images and other files for config::DATA_STORE
  • Session - session data for config::SESSION_SAVE_PATH
  • Datastore can contain session directory
  • Edit config.php to point them out. Make sure that Apache can write into them.
  1. If you chose not to create data directories some constants should be disabled in config.php
  • DATA_STORE
  • PHPTAL_TMP
  • Optionally you could also disable SESSION_SAVE_PATH
  1. Define the RewriteBase if running in subdirectory
  2. Please make sure that FACEBOOK is enabled and APP_ID along with APP_SECRET are provided.
  3. Disable DEV_MODE in production environment
  4. Use composer to install additional packages (install globally or download composer.phar and run php composer install this will create the vendor directory)

Please note that database and tables will be created automatically if the database does not exists yet. You can always use the file to create tables manually. File is located in engine/lib/database/teke.sql. Please replace prefix_ with something you chose in that case.

Please note that initial admin role has to be granted to a user with direct query. Set role to 9 Later on that administrator may change roles for others using the GUI