mirror of
https://github.com/benjaminjonard/koillection.git
synced 2025-12-27 22:43:12 +00:00
Page:
manual installation
No results
1
manual installation
Benjamin Jonard edited this page 2023-12-13 10:32:09 +01:00
Table of Contents
Manual - Using git or an archive file
Requirements
-
PHP
Koillection PHP version Maintained 1.5.x 8.3 ✔️ 1.4.x 8.2 ❌ 1.3.x 8.1 ❌ 1.2.x 8.0 ❌ 1.1.x 7.4 ❌ 1.0.x 7.2 ❌ -
Make sure you have the following PHP extensions installed:
ctype,fileinfo,gd,iconv,intl,json,apcu
-
A webserver such as Apache2 or nginx
-
A Postgresql (>= 10), Mysql (>= 8) or MariaDb database.
-
Node 14 or more and Yarn
-
Composer
Installation
git clonethe repository or download and unzip the project archive- Create a
.env.localfile and copy the content of.envin it - In
.env.localreplace the values by your configuration and remove all curly bracesAPP_ENV-> Symfony environment, prod by defaultAPP_DEBUG-> activate Symfony debug mode, 0 or 1DB_DRIVER-> pdo_mysql or pdo_pgsqlDB_USER-> your database userDB_PASSWORD-> your database passwordDB_HOST-> your database address (ex: 127.0.0.1 or localhost)DB_PORT-> your database port (5432 by default for postgres, 3306 for mysql)DB_NAME-> your database nameDB_VERSION-> your postgres server version (ex: 10.3)PHP_TZ-> Your timezone (ex: Europe/Paris)
- In the project root folder execute
composer install --no-dev --classmap-authoritative - Then
php bin/console doctrine:migrations:migrate - Dump translations for interface
php bin/console app:translations:dump - (Optional) Generate SSH keys for API
php bin/console lexik:jwt:generate-keypair(not mandatory if you do not plan on using the API) - Configure a vhost (an example can be found in docker/default.conf)
- Generate assets :
cd assets/ && yarn install && yarn build && cd .. - (Optional) Copy the values contained in
docker/php.iniin your ownphp.ini. Not mandatory but can improve performance greatly