Basic Installation

From ARK
Revision as of 18:15, 17 June 2007 by 82.21.105.246 (talk) (Install a database)

Jump to: navigation, search

Preconfigured ARK setups are available from the ARK team. If you are unfamiliar with the setup and adminisration of webservers along with the security risks to your system and data this entails, please consider contacting us to aquire a fully running ARK. For those of you who have already got a server and want to go though the installation proceedure, we have provided the following notes:

Dependencies

ARK requires the following open source software packages to be installed on your server:

  1. Apache 2
  2. PHP 5
  3. MySQL 5

In order to benefit from the spatial integration offered by ARK, you will also need the following packages:

  1. PHP Mapscript

Apache PHP MySQL

On most Linux distributions these packages will be installed by default. ARK is not particularly fussy about the version numbers of these packages and should run ok on PHP4 and MySQL4, although this may require some minor modifications.

For Mac OSX and Windows, these packages are available as binary distributions. ARK is known to run on MAMP, the binary distribution for Mac and WAMP, the binaray distribution for windows.

ARK runs on top of these packages and does not provide any set up of them or additional securuty to them. If you are using your server exposed to the internet, it is essential that you follow good standard security practice for the configuration of your packages. This setup is outside of the scope of this documentation and you are advised to undertake your research carefully.

Mapscript

Mapscript runs on all three major operating systems. The installation instructions vary depending on many factors. Detailed installation instructions are available on the Mapserver website.

Installing ARK

Ark is installed by unpacking the source code into the document root of the webserver where you intend to host it. The second phase of installation is then the initial setup and creation of the empty database.

Download source

Download the latest source code from http://ark.lparchaeology.com/downloads and unpack it into the document root of your server. If you are unsure of the correct location of the document root, you could try reading the manual of your apache distribution.

Install a database

In order for ark to work, you need to install an ARK database on your MySQL server. Preconfigured sample databases are available for download from the download area of the ARK site. At present you must install the sql dump on the server manually using your tool of choice. We think that phpMyAdmin is a good way to do this.

  1. Download your chosen database dump file
  2. Point your browser at the phpMyAdmin installation on your web-server
  3. Make an empty database, by going to the Databases screen and filling in the Create new database box. Make the Collation utf8_unicode_ci and that should deal with most character sets.
  4. Once the database is created, switch to it and choose Import
  5. Using the Browse button, point it at the file that you have downloaded (it should be a tar.gz) - make the character set utf8
  6. Click Go and wait a little while, and the database structure should be loaded up fine.
  7. You will need to set up a user and give it at least SELECT, INSERT, UPDATE andDELETE privileges to the new db.

If you wish to use the slippy map functionality - you will need to undertake the same steps but this time downloading a copy of the 'clarent' db_schema.