Installation
Tancredi is built on the PHP Slim 3 framwork and requires at least a PHP 5.6 web stack to run. For instance, an Apache or Nginx web server with PHP-FPM are typical setup.
Clone the repository with
git clone https://github.com/nethesis/tancredi.git`Go into directory and install dependencies with Composer
cd tancredi curl -sS https://getcomposer.org/installer | php php composer.phar installTancredi reads its configuration from the
/etc/tancredi.conf. Copy thetancredi.conf.samplefile from the source code repository to/etc/tancredi.confand modify it as needed.Set up write access permissions on
data/first_access_tokens,data/scopes,data/templates-custom,data/tokens
On CentOS 7 the
apacheuser is a good choice:chown -R root:apache data/{first_access_tokens,scopes,templates-custom,tokens} chmod g+w data/{first_access_tokens,scopes,templates-custom,tokens}Create a directory for log files and make sure the Tancredi user has granted write access.
mkdir -p /var/log/tancredi chown -R root:apache /var/log/tancredi chmod g+w /var/log/tancrediConfigure the HTTP server to allow reaching
public/provisioning.phpandpublic/api-v1.php. For instance set up the URL mapping rules as follow:https://host.fqdn/provisioning/ => public/provisioning.php https://host.fqdn/tancredi/api/v1/ => public/api-v1.php