Tracmor

From Hack Sphere Labs Wiki
Revision as of 16:35, 10 October 2013 by Webdawg (talk | contribs) (Created page with "With existing webserver I had to: aptitude install php5-gd =Install on Debian 6= cd /var/www mkdir tracmor cd tracmor wget https://github.com/tracmor/tracmor/archive/mas...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

With existing webserver I had to:

aptitude install php5-gd

Install on Debian 6

cd /var/www
mkdir tracmor
cd tracmor
wget https://github.com/tracmor/tracmor/archive/master.zip
unzip master.zip
mv tracmor-master/* .
rm -rf tracmor-master
rm -rf master.zip

Create Database

mysql -u root -p

SQL Commands

create database tracmordb;
grant usage on *.* to tracmoruser@localhost identified by 'tracmorpasswd';
grant all privileges on tracmordb.* to tracmoruser@localhost;
use tracmordb;
source ./data_model/create.sql
source ./data_model/data.sql
exit

Read INSTALL

nano -w includes/configuration.inc.php
  • Config mod example:
 define ('__DOCROOT__', '/var/www');
 define ('__VIRTUAL_DIRECTORY__', '');
 define ('__SUBDIRECTORY__', '/tracmor');

 define('ALLOW_REMOTE_ADMIN', false);

 DEFINE('__TRACMOR_TMP__', '/tracmor/tmp');

The INSTALL file states to put the contents of the tracmor dir in the root of the webserver but in the config file it has it in a directory in the root of the webserver. It states you can put it anywhere but why would they tell you to put it at root if the config file is modded for something else. You need to:

  • Edit the directives in the INSTALL file
  • Edit the tmp dir directive in the configuration.inc.php file
chown -R www-data:www-data tmp/
chown -R www-data:www-data uploads/