generic.md - # Installing Monica (Generic) <!- omit in toc...

This preview shows page 1 - 3 out of 7 pages.

# Installing Monica (Generic) <!-- omit in toc -->- [Prerequisites](#prerequisites)- [Types of databases](#types-of-databases)- [Installation steps](#installation-steps)- [1. Clone the repository](#1-clone-the-repository)- [2. Setup the database](#2-setup-the-database)- [3. Configure Monica](#3-configure-monica)- [4. Configure cron job](#4-configure-cron-job)- [5. Configure Apache webserver](#5-configure-apache-webserver)- [6. Optional: Setup the queues with Redis, Beanstalk or Amazon SQS](#6-optional-setup-the-queues-with-redis-beanstalk-or-amazon-sqs)- [7. Optional: Setup the access tokens to use the API](#7-optional-setup-the-access-tokens-to-use-the-api)- [Generate the encryption keys](#generate-the-encryption-keys)- [Optional: Save the encryption keys as variable](#optional-save-the-encryption-keys-as-variable)- [Optional: Generate a Password grant client](#optional-generate-a-password-grant-client)- [Final step](#final-step)## PrerequisitesIf you don't want to use Docker, the best way to setup the project is to use thesame configuration that [Homestead]() uses.Basically, Monica depends on the following:-[Git]()-PHP 7.4+-[Composer]()-[Node.js]()-[Yarn]()-[MySQL]()-Optional: Redis or Beanstalk**Git:** Git should come pre-installed with your server. If it doesn't - use theinstallation instructions in the link.**PHP:** Install php7.4 minimum, with these extensions:-bcmath-curl-dom-gd-gmp-iconv-intl-json-mbstring-mysqli-opcache-pdo_mysql-redis-sodium-xml-zip**Composer:** After you're done installing PHP, you'll need the Composer dependencymanager. It is not enough to just install Composer, you also need to make sure it
is installed globally for Monica's installation to run smoothly:```shphp -r "copy('', 'composer-setup.php');"php composer-setup.php --install-dir=/usr/local/bin/ --filename=composerphp -r "unlink('composer-setup.php');"```**Node.js:** Install node.js 14+ minimum**Yarn:** Install yarn using npm```shnpm install --global yarn```**Mysql:** Install Mysql 5.7+### Types of databasesThe official Monica installation uses mySQL as the database system and **this isthe only official system we support**. While Laravel technically supportsPostgreSQL and SQLite, we can't guarantee that it will work fine with Monica aswe've never tested it. Feel free to read [Laravel's documentation]() on that topic if you feeladventurous.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 7 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Summer
Professor
N/A
Tags
Monica, Apache HTTP Server

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture