-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
As of May 21, 2013, no graphical installer currently exists in BTS. Installation is a difficult, manual process at this point. Since BTS is currently in the Alpha stage, we cannot guarantee that these manual installation instructions will function. However, they are provided to assist testers.
These instructions were written for version 0.1.0-alpha of the BTS server. They may break if using a release older than 0.1 or the latest repository version.
- Download the latest release of BTS Server from SourceForge
or GitHub (TODO), or checkout the code with Git. - Configure the web server (e.g. Apache, nginx).
- If you downloaded an archive from SourceForge, extract the files to a directory so that the
public
folder is accessible over HTTP -- preferably, usingpublic
as the document root. - If you used Git, ensure that the web server only serves from the
public
folder.
- If you downloaded an archive from SourceForge, extract the files to a directory so that the
- Create a MySQL database and user to be used with BTS.
- Use a MySQL administration tool (e.g. phpMyAdmin or the MySQL Workbench), install the BTS schema in
application/configs/sql/bts-schema.sql
. - Copy
application/configs/database.ini.dist
toapplication/configs/database.ini
.- Fill in your MySQL server hostname, username, password, schema, and save this
database.ini
file. - If your system does not support PDO MySQL (rare among modern PHP installations), enter
'Mysqli'
as the value for theresources.db.adapter
option.
- Fill in your MySQL server hostname, username, password, schema, and save this
- Copy
application/configs/bts.ini.dist
toapplication/configs/bts.ini
. It is imperative that you leave the .dist file in place!- Visit http://barcodetickets.sourceforge.net/utils/generate-hash.php to generate a secure hash for your installation. This is used to seed event encryption keys and API keys.
BTS should now be functional, assuming Zend Framework and PEAR are available in the right locations.
At this point, the BTS system contains no users, API clients, events or tickets. To do anything on the server side, you should first create an administrative user.
For the moment, the only means of doing so is by creating a file and executing it to run a certain method.
<?php
class DebugController extends Zend_Controller_Action
{
public function indexAction ()
{
$U = new Bts_Model_Users();
$userId = $U->insertUser('YOURUSERNAME', 'YOURPASSWORD', array(
'email' => '[email protected]',
'status' => 1
));
echo $userId;
}
}
- Create a file called
DebugController.php
inapplication/controllers
with these contents (replace with your own information). - Visit the root of your BTS installation, and append
/debug/
to the URL (e.g. if your installation is located at http://example.com/bts/, visit http://example.com/bts/debug/). - If the application shows the number 1 (i.e. the sequential user ID of the very first user), you have succeeded in creating your user.
- Delete the
DebugController.php
file for security. - Log in from the root of your BTS application.