Skip to content

Instructions for production install to Ubuntu24.04#600

Open
tr-electronic-edv wants to merge 1 commit intomonarc-project:masterfrom
tr-electronic-edv:ubuntu24
Open

Instructions for production install to Ubuntu24.04#600
tr-electronic-edv wants to merge 1 commit intomonarc-project:masterfrom
tr-electronic-edv:ubuntu24

Conversation

@tr-electronic-edv
Copy link

@tr-electronic-edv tr-electronic-edv commented Feb 26, 2026

Instruction for Ubuntu 24 is based on the previous instructions for Ubuntu 22.

Added or changed:

  • php8.3 is used (the default in Ubuntu24.04 repos)

  • "get-and-unpack-the-latest-release" script is extracted into the separate file and refactored:

    • logic refactor (simplify PATH construction and directories creation)
    • check the github response is correct, e.g. not null or rate-limit error
    • improve soft links creation. Previous ln -s would fail if the symlink already exists, e.g. during the version upgrade.
    • fail on errors with a message, useful for debug and CI/CD pipelines, e.g. SSL error behind a corporate firewall
  • set the php limits and log settings in the apache config, that

    • does not spoil the global php.ini when the server runs multiple websites.
    • simpler for the user
    • avoids multi-line "sed" modifications of the php.ini in Docker or CI/CD scripts
  • Rearrange the manual structure. Now it is less nested and more focused:

    • Dependencies
    • Files
    • Webserver
    • Database

Tests

Install instruction was tested on:

  • a clean Ubuntu 24.04 machine
  • a clean Ubuntu 24.04 in wsl2

The Front Office:

  • no autotests found
  • tested manually the website, no errors found
  • not all existing pages and transitions has been tested. Some php8.3 incompatibility errors could still exists.

Has not been tested

The Statistics installation and website

Related Issues: #599

Questions

  • Does it require a DB change? - NO
  • Are you using it in production? - I'm going to

Release Type: Minor

@tr-electronic-edv tr-electronic-edv marked this pull request as ready for review February 27, 2026 08:30
@tr-electronic-edv
Copy link
Author

@ruslanbaidan I've also removed zip unzip git gettext from apt-get install because I did not found where these are used in production, but may be in the Monarc export or import ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant