====== Installation ======
===== Requirements =====
ONA has a simple set of requirements to run. I will describe them each briefly here.
* You will need a web server to service the page. Apache was the web server used to do the development and testing.
* You will need a database to store the data. MySQL was the database used to develop and test with. We use the ADODB PHP database abstraction layer so using Postgres or Oracle should not be an issue although we have not tested with those backends.
* You will need a PHP interpreter. ONA was written in the PHP language. Currently PHP version 4 or newer is required.
* In addition to PHP, you will need at least one PHP database module that may or may not be part of your distributions main install. You can check that they exist by issuing the command php -m You will see a list of the installed modules and something like "mysql" should be in the list.
* While we are using the database abstraction system ADODB, the database creation scripts are all based off of MySQL . So for the time being, MySQL is the only truly supported database.
* Although it is not a requirement, you can use an accelerator such as [[http://eaccelerator.net|eAccelerator]]
===== Steps =====
* Download the latest tar archive from the [[:download|download page]]
* Issue the command "''tar -C /opt -zxvf ona-vX.X.X.tar.gz''" to extract the archive into the /opt directory. You can leave off, or change, the "-C /opt" part if you wish to extract it elsewhere.
* Add a symlink in your web server root that points ona -> /opt/ona/www. An example would be: ''ln -s /opt/ona/www /var/www/ona'' assuming your apache root is /var/www. An alternative to a symlink could be to add something like the following to your apache configuration:
Alias /ona "/opt/ona/www/"
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
* touch /var/log/ona.log. This is the default location for the ONA system log.
* chown www-data /opt/ona/www/local/config /var/log/ona.log (or whatever your web server user is)
* Point your broswer to http:///ona and follow the install steps
==== Upgrades ====
Upgrades should automatically be detected and performed. As usual MAKE A BACKUP FIRST! Its likely that I screwed something up and your data will be ground into a fine dust. Currently the autoupgrade of database elements only works when using a MySQL database.
Quick steps for upgrade:
* tar -C /opt -zxvf ona-vX.X.X.tar.gz Or change -C /opt to wherever your installed it to on your system
* chown www-data /opt/ona/www/local/config (or whatever your web server user is)
* Point your broswer to http:///ona
* After the license info you will be informed that an upgrade will occur. Select ok to the upgrade (after your backups n stuff)
* If there is any new database updates they should be applied and you should see a note about the upgrade_index being updated as well as version numbers.
* Once in, should see the latest version number displayed on the dashboard.
===== Configuration =====
* There are currently very little configuration options. There is a table called 'sys_config' that contains a hand full of options available to you. There is currently not a web interface for maintaining this table.
* The configuration options are subject to change as we are still designing the method of dealing with user configuration options.
Proceed to the [[getting_started|Getting Started]] section